title: Can't enable GOST engine support in OpenSSL
body: <p>I'm trying to install <a href="https://wiki.opendnssec.org/display/SoftHSM/Home" rel="noreferrer">SoftHSM</a> as shown <a href="https://wiki.opendnssec.org/display/SoftHSMDOCS/SoftHSM+Documentation+v2" rel="noreferrer">here</a>, which requires OpenSSL. So I installed OpenSSL v1.0.2j, but it seems it doesn't have bundled GOST support, or at least I couldn't find <code>libgost.so</code> in <code>/usr/lib/openssl/engines</code>; so I took it from an older version of OpenSSL that I found (v1.0.0k-2.1.x86_64) and placed it in that folder. </p>
  
  <p>Then, as suggested in multiple forums, I modified the file openssl.cnf (in <code>/usr/local/ssl</code>). </p>
  
  <p>In the line after <code>RANDFIL = $ENV::HOME/.rnd</code> I added: </p>
  
  <pre><code>openssl_conf=openssl_def
  </code></pre>
  
  <p>And at the end of the file:</p>
  
  <pre><code># OpenSSL default section
  [openssl_def]
  engines = engine_section
  
  # Engine section
  [engine_section]
  gost = gost_section
  
  # Engine gost section
  [gost_section]
  engine_id = gost
  dynamic_path = /usr/lib/openssl/engines/libgost.so
  default_algorithms = ALL
  CRYPT_PARAMS = id-Gost28147-89-CryptoPro-A-ParamSet
  </code></pre>
  
  <p>But still in the configure phase of SoftHSM installation it shows this error:</p>
  
  <pre><code>checking for OpenSSL GOST support... Cannot GOST engine
  configure: error: OpenSSL library has no GOST support
  </code></pre>
  
  <p>Any help would be highly appreciated!</p>
  
  <p>If I run this command: <code>openssl ciphers|tr ':' '\n'|grep GOST</code>, the output is: <code>Error configuring OpenSSL</code></p>