Re: OpenSSL dynamic engine loading shows error

2021-08-26 Thread Shariful Alam
Dear Dmitry, Thank you very much for the help. Appreciate it. Regards, Shariful Alam On Thu, Aug 26, 2021 at 12:01 PM Dmitry Belyavsky wrote: > Dear Shariful, > > You can build your engine when it's feasible. > You can install it to the engine folder and get rid of dynamic_path, but > it's not

Re: OpenSSL dynamic engine loading shows error

2021-08-26 Thread Dmitry Belyavsky
Dear Shariful, You can build your engine when it's feasible. You can install it to the engine folder and get rid of dynamic_path, but it's not necessary. I prefer explicitly loading the engine via the config file. On Thu, Aug 26, 2021 at 7:56 PM Shariful Alam wrote: > Dear Dmitry, > Thank you

Re: OpenSSL dynamic engine loading shows error

2021-08-26 Thread Shariful Alam
Dear Dmitry, Thank you very much. After moving the above section at the end of the configuration file and add the dynamic path to the shared library like the following, == [rsa_section] engine_id = rsa-engine-new dynamic_path = /opt/openssl/lib/engines-1.1/rsa-engine-new.so

Re: OpenSSL dynamic engine loading shows error

2021-08-26 Thread Dmitry Belyavsky
As I suspected, you have the remnants of main openssl config just after your only directive in the [rsa_section] I'd suggest you moving the following lines = [openssl_def] engines = engine_section [engine_section] rsa-engine-new = rsa_section [rsa_section] engine_id = rsa-engine-new ==

Re: OpenSSL dynamic engine loading shows error

2021-08-26 Thread Shariful Alam
Dear Dmitry, In case if it helps, I have installed my OpenSSL from the source code and my current version is OpenSSL 1.1.1c 28 May 2019 Regards, Shariful Alam On Thu, Aug 26, 2021 at 10:20 AM Shariful Alam wrote: > Dmitry, > Thank you for your response. > > As you have suggested, I have chang

Re: OpenSSL dynamic engine loading shows error

2021-08-26 Thread Shariful Alam
Dmitry, Thank you for your response. As you have suggested, I have changed my engine name to maintain with the configuration file /* Engine Id and Name */ static const char *engine_rsa_id = "rsa-engine-new"; static const char *engine_rsa_name = "Dummy RSA engine for testing"; Here is my whole *o

Re: OpenSSL dynamic engine loading shows error

2021-08-26 Thread Dmitry Belyavsky
Dear Shariful, 1. Don't hurry :) 2. It looks like there are some more configuration options in your openssl.cnf [rsa_section] I think they came from the standard configuration. So if I am wrong, please provide the whole file. 3. I'd recommend you also update the lines ` static const char *engine_d

Re: OpenSSL dynamic engine loading shows error

2021-08-26 Thread Shariful Alam
Any help regarding this matter?? Regards, Shariful On Thu, Aug 26, 2021, 12:06 AM Shariful Alam wrote: > Hello, > > I have a simple rsa engine code (from engines/e_dasync.c). My code > compiles. Command "*$openssl engine -t -c*" shows the following, > > > openssl engine -t -c > > (rdrand) Inte

OpenSSL dynamic engine loading shows error

2021-08-25 Thread Shariful Alam
Hello, I have a simple rsa engine code (from engines/e_dasync.c). My code compiles. Command "*$openssl engine -t -c*" shows the following, openssl engine -t -c (rdrand) Intel RDRAND engine [RAND] [ available ] (dynamic) Dynamic engine loading support [ unavailable ] (dasync) Du