Добрый день!
Не получается сдружить openssl c рутокен.
конфиг openssl.cnf:
[engine_section]
rtengine = gost_section
[gost_section]
#dynamic_path = C:/openssl-1.1.1q/rtengine/rtengine.dll
dynamic_path = C:/Program\ Files/OpenSSL/lib/engines-1_1/rtengine.dll
MODULE_PATH = C:/openssl-1.1.1q/rtengine/rtpkcs11ecp.dll
RAND_TOKEN = pkcs11:manufacturer=Aktiv%20Co.;model=Rutoken%20ECP
default_algorithms = CIPHERS, DIGEST, PKEY, RAND
Получаю ошибку:
openssl engine -v
(rdrand) Intel RDRAND engine
(dynamic) Dynamic engine loading support
SO_PATH, NO_VCHECK, ID, LIST_ADD, DIR_LOAD, DIR_ADD, LOAD
(rtengine) Rutoken engine
enable_rand, pkcs11_path, rand_token
9536:error:260AC089:engine routines:int_ctrl_helper:invalid cmd name:crypto\engine\eng_ctrl.c:87:
9536:error:260AB089:engine routines:ENGINE_ctrl_cmd_string:invalid cmd name:crypto\engine\eng_ctrl.c:255:
9536:error:260BC066:engine routines:int_engine_configure:engine configuration error:crypto\engine\eng_cnf.c:141:section=gost_section, name=MODULE_PATH, value=C:/openssl-1.1.1q/rtengine/rtpkcs11ecp.dll
9536:error:0E07606D:configuration file routines:module_run:module initialization error:crypto\conf\conf_mod.c:177:module=engines, value=engine_section, retcode=-1
Версия openssl:
c:\openssl-1.1.1q>openssl version -a
OpenSSL 1.1.1q 5 Jul 2022
built on: Tue Jul 5 16:16:11 2022 UTC
platform: VC-WIN64A-rtt
options: bn(64,64) rc4(16x,int) des(long) idea(int) blowfish(ptr)
compiler: cl /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MT /W3 /wd4090 /nologo /O2 -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM
OPENSSLDIR: "C:\Program Files\Common Files\SSL"
ENGINESDIR: "C:\Program Files\OpenSSL\lib\engines-1_1"
Seeding source: os-specific
Библиотеки рутокен последние из sdk.
Понимаю, что ошибка, возможно, в указании пути к библиотекам, но прошу помочь.