<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi,</div>
<div> </div>
<div>I am trying to implement an openssl (1.1.1c) engine. However, after the openssl is initialized by nginx 1.17.2, the engine does not initialized properly. When I am using 'openssl' command it works file.</div>
<div> </div>
<div>After a bit debugging, I realized that nginx 1.17.2 initialize openssl with function call 'OPENSSL_init_ssl(OPENSSL_INIT_LOAD_CONFIG, NULL)'. However, inside openssl function OPENSSL_init_crypto() (called from OPENSSL_init_ssl), it needs the following flags to register all openssl functions: </div>
<div>```</div>
<div>
<p> if (opts & (OPENSSL_INIT_ENGINE_ALL_BUILTIN</p>
<p> | OPENSSL_INIT_ENGINE_OPENSSL</p>
<p> | OPENSSL_INIT_ENGINE_AFALG)) {</p>
<p> ENGINE_register_all_complete();</p>
<p> }</p>
<p>```</p>
<p>The easiest way to fix this issue is to initialize openssl with multiple flags like 'OPENSSL_INIT_LOAD_CONFIG | OPENSSL_INIT_ENGINE_ALL_BUILTIN'. Will there be a fix in near future about this issue?</p>
<p> </p>
<p>Thanks</p>
</div>
<div> </div></div></body></html>