Hi<br><br>I believe I found a bug in the order of initialization of OpenSSL. The RSA keys are initialized (RSA_new called) in SSL_CTX_use_certificate_chain_file which is called from ngx_ssl_certificate which in turn is called from ngx_conf_parse at&nbsp; src/core/ngx_conf_file.c:237. The ssl_engine is however parsed in ngx_openssl_init_conf which is called later. Therefore the created RSA keys in SSL contexts use the built-in RSA_METHOD and not the one provided by loaded engine.<br>
I don&#39;t have enough knowledge of nginx so I can&#39;t propose solution but the obvious thing would be to change the order of parsing of those directives (either load the engine earlier or load the SSL certificate and key later). <br>
<br>Best regards<br><br>-- <br>Marcin Gozdalik &lt;<a href="mailto:gozdal@gmail.com">gozdal@gmail.com</a>&gt;<br>