在openssl中设置加密提供者

时间:2019-12-13 12:25:33

标签: openssl pkcs#11

上帝的日子!

请告诉我如何在Openssl中正确配置pkcs11提供程序的使用?

我的openssl.cnf:

openssl_conf = openssl_def
[openssl_def]
engines = engine_section
[engine_section]
pkcs11 = pkcs11_section
[pkcs11_section]
engine_id = pkcs11
dynamic_path = "C:\\Windows\\System32\\opensc-pkcs11.dll"
module_path = "C:\\nCipher\\nfast\\toolkits\\pkcs11\\cknfast-32.dll"
#PIN = "password"
init = 0

#
# OpenSSL example configuration file.
# This is mostly being used for generation of certificate requests.
#
....
further below default settings

我下载了文件opensc-pkcs11.dll并将其放在指定的位置,因为它不在计算机上。

接下来,我尝试致电openssl,但出现错误:

> openssl engine -t -c
3736:error:0E065068:configuration file routines:STR_COPY:variable has no value:./crypto/conf/conf_def.c:584:line 22

怎么了?

0 个答案:

没有答案