Settings OpenSSL GOST for Ubuntu 18.04 / 20.04
- Install Gost package encryption!
sudo apt install libengine-gost-openssl1.1
sudo nano /enc/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
- You can find the location of the dynamic_path parameter using the command!
sudo find / -name "gost.so"
- To check the correctness of the settings, you can use command
openssl ciphers | tr ':' '\n' | grep GOST
Example of the correct answer!
> GOST2012-GOST8912-GOST8912
> GOST2001-GOST89-GOST89