Linking OpenSSL engine with a third party dynamic library

2022-04-12 Thread Shariful Alam
Hello, I have a custom OpenSSL engine and it is working fine with pthread. I was trying to use a third-party thread library by linking this library with my engine. However, upon linking and running the engine, I'm getting a Segmentation fault. I just could

Is it possible to use a global lock in the OpenSSL engine on each mod_ssl call?

2021-11-10 Thread Shariful Alam
Hello, I understand this is a weird question. I have an OpenSSL engine only for RSA. And I have apache installed that uses this OpenSSL engine for the HTTPS connection. I was wondering if it is possible to use a global lock with the OpenSSL on mod_ssl call? So that, only one mod_ssl thread cal

Re: Why custom RSA engine is not calling default RSA method?

2021-10-05 Thread Shariful Alam
p 29, 2021 at 6:59 PM Dmitry Belyavsky > wrote: > >> Dear Shariful, >> >> Yes. You have to provide all the RSA_METHO functions your app is going to >> use. >> >> On Tue, Sep 28, 2021 at 5:46 PM Shariful Alam wrote: >> >>> Dear Dmitry, >

Re: Why custom RSA engine is not calling default RSA method?

2021-09-28 Thread Shariful Alam
40, padding=1) at crypto/rsa/rsa_crpt.c:30 #2 0x004479a7 in rsautl_main (argc=0, argv=0x7fffde10) at apps/rsautl.c:248 #3 0x004379fa in do_cmd (prog=0x6d5930, argc=11, argv=0x7fffde10) at apps/openssl.c:564 #4 0x00436e4d in main (argc=11, argv=0x7fffde10) at apps/openssl.c:183

Why custom RSA engine is not calling default RSA method?

2021-09-27 Thread Shariful Alam
. } 64. 65. IMPLEMENT_DYNAMIC_BIND_FN(bind_helper) 66. IMPLEMENT_DYNAMIC_CHECK_FN() ====== Regards, Shariful Alam

Calling OpenSSL functions from custom openssl engine causing segmentation fault?

2021-09-19 Thread Shariful Alam
=== *engine "rsa-engine-new" set.RSA Engine is encrypting using public keySegmentation fault (core dumped)* Do I need to Compile this sample engine with the OpenSSL in order for it to work? Regards, Shariful Alam

Re: How to get rsa-private key in plain text format?

2021-09-03 Thread Shariful Alam
Thank you very much Regards, Shariful Alam On Fri, Sep 3, 2021 at 10:29 AM Matt Caswell wrote: > > > On 03/09/2021 17:24, Shariful Alam wrote: > > Thank you very much. > > So the output of "*openssl rsa -in mykey.pem -text -noout*" is a base64 > > hex forma

Re: How to get rsa-private key in plain text format?

2021-09-03 Thread Shariful Alam
> > > >

Re: How to get rsa-private key in plain text format?

2021-09-03 Thread Shariful Alam
Thank you very much. So the output of "*openssl rsa -in mykey.pem -text -noout*" is a base64 hex format? Regards, Shariful On Fri, Sep 3, 2021 at 7:55 AM Matt Caswell wrote: > > > On 03/09/2021 14:49, Billy Brumley wrote: > >>> Hello, > >>> Is there any command-line tool to get the plain text

How to get rsa-private key in plain text format?

2021-09-02 Thread Shariful Alam
= E7A5BC150E6A20E52920C6F24FC872B1893ED9268AA506D86EC3AA6E3B377E5F6AE0D686751CE40F684435C6F64F3161389CE430FB271EE81D0067ED8A1BD8096FB3E4AF5839383F26F99916EED4D80CFA9B5901350A9C0AAD4E348EBCC559F92434C71DA864C13371626D9F29998748BB3C47BED31471B73ABF2E27B983 If no such tool exists, Can anyone please give me an idea, how can extract keys like the above format from a .pem file? Regards, Shariful Alam

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

Re: OpenSSL dynamic engine loading shows error

2021-08-26 Thread Shariful Alam
== My engine load without any error. Thanks. One more question, Do I need to compile and install my engine with Openssl source code in-order for it to work with mod_ssl? Regards, Shariful Alam On Thu, Aug 26, 2021 at 10:30 AM Dmitry Belyavsky wrote: > As I suspected, you h

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 sugge

Re: OpenSSL dynamic engine loading shows error

2021-08-26 Thread Shariful Alam
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_dasync_id = "dasync"; > static const char *engine_dasync_name = "Dummy Async engine support"; > ` > To

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, > > > o

OpenSSL dynamic engine loading shows error

2021-08-26 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)

Re: error: redefinition of ‘struct rsa_meth_st’

2021-04-12 Thread Shariful Alam
‘RSA_meth_set_priv_dec’ [-Wimplicit-function-declaration] || RSA_meth_set_priv_dec(dasync_rsa_method, dasync_rsa_priv_dec) == 0 can you please tell me why the same code is throwing two different results in different machines? Regards, Shariful Alam On Mon, Apr 12, 2021 at 10:42 AM Matt Caswe

Re: error: redefinition of ‘struct rsa_meth_st’

2021-04-12 Thread Shariful Alam
Dr. Pauli, Goodmorning. Thank you for replying. I found the documentation a bit difficult for me to understand. I was wondering if you can direct me to a sample skeleton code for creating a custom RSA engine. Regards, Shariful Alam On Sun, Apr 11, 2021 at 6:00 PM Dr Paul Dale wrote: >

error: redefinition of ‘struct rsa_meth_st’

2021-04-11 Thread Shariful Alam
);};* = My sample skeleton code is here https://pastebin.com/uNXYknEA Can anyone please tell me what I'm I doing wrong? Regards, Shariful Alam

How to load a custom OpenSSL engine automatically?

2021-04-05 Thread Shariful Alam
fix it? Sincerely, Shariful Alam

Can't link a static library with custom OpenSSL rsa engine

2020-11-17 Thread Shariful Alam
Hello, I have a custom rsa engine. It builds and works fine. Later, I have added a static library with my custom engine code. My code compiles. However, when I try to load the custom engine it shows *invalid engine "rsa-engine-new". *The full error is given below,