I need to extract a private key from .p12 file encrypted using GOST algorithms, I'm using the command below:
openssl pkcs12 -engine gost -in GOSTKCNA_file.p12 -nodes -nocerts
I have already set up several environments (using docker) with different versions of openssl
and gost engines, but whenever I type in the command, there is an error:
140221432510272:error:0609E09C:digital envelope routines:pkey_set_type:unsupported algorithm:crypto/evp/p_lib.c:210:
140221432510272:error:0606F076:digital envelope routines:EVP_PKCS82PKEY:unsupported private key algorithm:crypto/evp/evp_pkey.c:36:TYPE=1.2.398.3.10.1.1.1.1
I'm sure I installed everything correctly and configured /etc/ssl/openssl.cnf
file.
Typing openssl ciphers | tr ':' '\n' | grep GOST
in terminal shows:
GOST2012-GOST8912-GOST8912
GOST2001-GOST89-GOST89
The pkcs#12 is also correct, since we are using it in other services, what might be wrong?