我用的是OpenSSL 1.0.1e。
OpenSSL引擎ubsec需要包含实际实现的附加库。实现库是/usr/lib/libvendor_ubsec.so。
要从ubsec OpenSSL引擎中指示要从代码加载什么实现:
ENGINE_ctrl_cmd_string (&engine, "SO_PATH", vendor_ubsec, 0);
我想按以下方式运行openssl速度测试:
openssl speed rsa1024 -engine ubsec
但是它失败了,因为openssl不加载libvendor_ubsec.so。
我理解这与OpenSSL动态引擎和加载实现相关,我需要使用以下内容:
openssl引擎ubsec -pre SO_PATH:vendor_ubsec
我的问题是如何将两个comamnd openssl 和openssl engine“组合”为ubsec engine>运行速度测试。
发布于 2013-07-26 01:56:26
通过交互方式使用openssl命令解释器,而不是发送单个命令,这样,在相同的执行上下文中,您可以加载引擎,然后运行命令。此站点还提供了有关定义库加载路径的有用信息。
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
https://stackoverflow.com/questions/17715546
复制