Answer the question
In order to leave comments, you need to log in
GOST 89 and stunnel?
There was a need to create a connection through stunnel (server and client) according to GOST encryption. I managed to set up stunnel, but only by automatically choosing the encryption method. If I write in the stunnel.conf config ciphers = GOST2001-GOST89-GOST89
, then stunnel crashes with an error
SSL_CTX_set_cipher_list: 1410D0B9: error:1410D0B9:SSL routines:SSL_CTX_set_cipher_list:no cipher match
Answer the question
In order to leave comments, you need to log in
Solved the problem with GOST. I really did not want to get into the source code, but I found the problem.
I reviewed version 4.29 (stable for squeeze), 4.53 (stable for wheezy) and 4.56 (latest stable).
For 4.29, you need to edit the src/ssl.c file, find the line s_log(LOG_DEBUG, "Engine %d initialized", current_engine+1);
and add the initialization of the SSL library after it. Without this command, stunnel will not be able to work with the gost engine, you can see this in the documentation for openssl on application development: SSL_library_init();
Then all that remains is to change the build rules for yourself in debian / rules (paths to openssl) and run dpkg-buildpackage
For 4.53 and 4.56, you need to edit src/options.c, find the line s_log(LOG_DEBUG, "Engine %d initialized", current_engine+1);
and add SSL_library_init();
Can be configured and installed.
Everywhere they write that to work with GOST, supposedly, a patched stunnel is needed.
How exactly to patch is not clear, but here there are hints that you need to rebuild with the --disable-rsa option
(This company, it seems, added code with GOST support to openssl, by the way)
cryptocom.ru/opensource/stunnel.html
Stunnel supports the ability to load the engine through its configuration file. Therefore, modification of the source texts is not required. However, the configure script needs to specify the --disable-rsa option when it is built. Stunnel built without this option only supports the RSA algorithm. With this option, all algorithms supported by the underlying OpenSSL are supported, including RSA.
ATTENTION! Stunnel does not read the standard OpenSSL configuration file. Therefore, the engine must be placed in the default engines directory of the OpenSSL installation.
And what's the point in that? In itself, the use of the GOST algorithm does not make the solution usable from the point of view of legislation. It is necessary to obtain a certificate for the correctness of embedding, otherwise the solution cannot be used to protect classified systems.
Or is it just an exercise for fun?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question