Можно выполнять из Ubuntu, но если у вас Windows - рекомендую настроить и поставить WSL2
apt install libengine-gost-openssl1.1
| # Компилим GOST-engine | 
| sudo apt install cmake libssl-dev | 
| git clone --branch=openssl_1_1_0 https://github.com/gost-engine/engine.git gost-engine/engine | 
| cd gost-engine/engine | 
| cmake . | 
| make | 
| # узнаем нужную директорию, копируем туда | 
| openssl version -e | 
| cp bin/gost.so /usr/lib/x86_64-linux-gnu/engines-1.1 | 
| # конфиг | 
| nano /etc/ssl/openssl.cnf | 
| # в начало файла | 
| openssl_conf = openssl_def | 
| # в конец | 
| [openssl_def] | 
| engines = engine_section | 
| [engine_section] | 
| gost = gost_section | 
| [gost_section] | 
| engine_id = gost | 
| dynamic_path = /usr/lib/x86_64-linux-gnu/engines-1.1/gost.so | 
| default_algorithms = ALL | 
| CRYPT_PARAMS = id-Gost28147-89-CryptoPro-A-ParamSet openssl ciphers|tr ':' '\n'|grep GOST На выходе должно получиться | 
| GOST2012-GOST8912-GOST8912 GOST2001-GOST89-GOST89 | 
 
 
No comments:
Post a Comment