I'm using OpenSSL 1.0.1e.
The OpenSSL engine ubsec, requires additional library containing the actual implementation. The implementation library is /usr/lib/libvendor_ubsec.so.
To instruct from ubsec OpenSSL engine what implementation to load we use from code:
ENGINE_ctrl_cmd_string (&engine, "SO_PATH", vendor_ubsec, 0);
I want to run openssl speed test as following:
openssl speed rsa1024 -engine ubsec
But it fails, since openssl doesn't load libvendor_ubsec.so.
I understand that this related to OpenSSL dynamic engines and to load implementation I need to use something like:
openssl engine ubsec -pre SO_PATH:vendor_ubsec
My question how I "combine" two comamnd openssl speed and openssl engine to run speed test for ubsec engine>
Use the openssl command interpreter interactively instead of sending in single commands, that way, in the same execution context, you can load the engine and then run the commands. This site also has useful information on defining the library load paths
gmurphy@interloper:~$ openssl
OpenSSL> engine dynamic
(dynamic) Dynamic engine loading support
OpenSSL> speed rsa1024
Doing 1024 bit private rsa's for 10s: 32226 1024 bit private RSA's in 9.96s
Doing 1024 bit public rsa's for 10s: 542409 1024 bit public RSA's in 9.96s
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With