[sisyphus] openssl & GOST

Вадим Илларионов gbimobou на gmail.com
Чт Май 19 14:02:37 MSK 2016


На свежеустановленной системе:

# openssl smime -sign -in req.xml -out req.sig -binary -signer req.pem
-outform DER
unable to load signing key file
139673537910680:error:0609E09C:digital envelope
routines:PKEY_SET_TYPE:unsupported algorithm:p_lib.c:231:
139673537910680:error:0606F076:digital envelope
routines:EVP_PKCS82PKEY:unsupported private key
algorithm:evp_pkey.c:84:TYPE=GOST R 34.10-2001
139673537910680:error:0907B00D:PEM routines:PEM_READ_BIO_PRIVATEKEY:ASN1
lib:pem_pkey.c:141:

Установлено:

# rpm -qa | grep ssl | sort
alterator-sslkey-0.2.3-alt1
libssl10-1.0.2h-alt1
openssl-1.0.2h-alt1
openssl-engines-1.0.2h-alt1

Добавлял в /etc/openssl/openssl.cnf строчки:

[openssl_def]
engines = engine_section

[engine_section]
gost = gost_section

[gost_section]
engine_id = gost
default_algorithms = ALL
CRYPT_PARAMS = id-Gost28147-89-CryptoPro-A-ParamSet

Не помогает.

На более старой системе с ssl версии 1.0.1k всё работает.

-- 
Мимо крокодил.
WBR, rednex CIO.
JID = <mailto:>
Skype = $local_part@<mailto:>
Viber = +7(964)103-65-67

----------- следующая часть -----------
Вложение в формате HTML было удалено...
URL: <http://lists.altlinux.org/pipermail/sisyphus/attachments/20160519/8af2c69e/attachment.html>


Подробная информация о списке рассылки Sisyphus