Note that there are some explanatory texts on larger screens.

plurals
  1. PObuilding a simple engine for openssl fails
    primarykey
    data
    text
    <p>I am just beginning to develop a simple openssl engine. In this process, I referred to this nice website <a href="http://sinodun.com/2009/02/developing-an-engine-for-openssl/" rel="nofollow">http://sinodun.com/2009/02/developing-an-engine-for-openssl/</a></p> <p>I downloaded openssl 1.0.0c and compiled in my own folder as follows:</p> <pre><code>./config --prefix=/home/workingDir/openssl --openssldir=/home/workingDir/openssl make make install </code></pre> <p>Then I proceeded to copy this simple_engine.c file and compiled it to simple_engine.o and then built shared library simple_engine.so.</p> <p>These are found in 'workingDir'</p> <p>After these steps, I changed the 2 openssl.cnf files available under openssl/apps and openssl1.0.0c/ main folders such that:</p> <pre><code>openssl_conf = openssl_def [openssl_def] engines = engines_section [engines_section] simple = simple_section [simple_section] engine_id = simple dynamic_path = /home/workingDir/simple_engine.so MODULE_PATH = /home/workingDir/simple_engine.so init = 0 [req] distinguished_name = req_distinguished_name [req_distinguished_name] </code></pre> <p>After this I set the LD_LIBRARY_PATH to point to /home/workingDir</p> <p>Then when I did:</p> <pre><code>./openssl engine </code></pre> <p>I get the following error:</p> <pre><code>Error configuring OpenSSL 3076019848:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:185:filename(/home/workingDir/simple_engine.so): /home/workingDir/simple_engine.so: undefined symbol: ENGINE_get_static_state 3076019848:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244: 3076019848:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:450: 3076019848:error:260BC066:engine routines:INT_ENGINE_CONFIGURE:engine configuration error:eng_cnf.c:204:section=simple_section, name=dynamic_path, value=/home/workingDir/simple_engine.so 3076019848:error:0E07606D:configuration file routines:MODULE_RUN:module initialization error:conf_mod.c:235:module=engines, value=engines_section, retcode=-1 </code></pre> <p>What is the problem? Please help. I am unable to proceed and don't find any documentation.</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload