Ok i have written printf in src/p11_rsa.c to check if i'm entering the 
RSA_set_flags callback and yes i am. Printf is being displayed but i still got 
this error, which shouldn't be any more.
________________________________
Od: openssl-users <openssl-users-boun...@openssl.org> w imieniu użytkownika 
Piotr Lobacz <piotr.lob...@softgent.com>
Wysłane: wtorek, 1 czerwca 2021 17:36
Do: Selva Nair <selva.n...@gmail.com>
DW: openssl-users@openssl.org <openssl-users@openssl.org>
Temat: ODP: CSR creation using pkcs11 dynamic engine

Sorry my bad i was checking bad position in the file...
________________________________
Od: openssl-users <openssl-users-boun...@openssl.org> w imieniu użytkownika 
Piotr Lobacz <piotr.lob...@softgent.com>
Wysłane: wtorek, 1 czerwca 2021 17:34
Do: Selva Nair <selva.n...@gmail.com>
DW: openssl-users@openssl.org <openssl-users@openssl.org>
Temat: ODP: CSR creation using pkcs11 dynamic engine

Ok not fixed in 0.4.11 it is fixed in master branch... i need to build it from 
master.
________________________________
Od: openssl-users <openssl-users-boun...@openssl.org> w imieniu użytkownika 
Piotr Lobacz <piotr.lob...@softgent.com>
Wysłane: wtorek, 1 czerwca 2021 17:18
Do: Selva Nair <selva.n...@gmail.com>
DW: openssl-users@openssl.org <openssl-users@openssl.org>
Temat: ODP: CSR creation using pkcs11 dynamic engine

Hi Selva,
btw. i have found one issue in libp11 package 
https://github.com/OpenSC/libp11/issues/304 and i have used 0.4.10 i will check 
firstly with 0.4.11 and give you answer.

BR
Piotr
________________________________
Od: Selva Nair <selva.n...@gmail.com>
Wysłane: wtorek, 1 czerwca 2021 17:15
Do: Piotr Lobacz <piotr.lob...@softgent.com>
DW: openssl-users@openssl.org <openssl-users@openssl.org>
Temat: Re: CSR creation using pkcs11 dynamic engine

Hi Piotr,

On Tue, Jun 1, 2021 at 10:57 AM Piotr Lobacz 
<piotr.lob...@softgent.com<mailto:piotr.lob...@softgent.com>> wrote:
Hi,
i have managed to find the engine method static EVP_PKEY *load_privkey(ENGINE 
*engine, const char *s_key_id, UI_METHOD *ui_method, void *callback_data) in 
libp11 package. I have also made a printf callback and i see the output that 
method is being called, but the problem is that i think i need to set this flag 
RSA_FLAG_EXT_PKEY in EVP_PKEY object which i don't know how to do is it even 
possible?

The flag on the key is always set by libp11 (look for RSA_set_key in 
p11_rsa.c). What it doesn't set is any flags on the method -- which you wanted 
to satisfy dotnet. For testing you could add it -- look for 
PKCS11_get_rsa_method in the same file.

Selva
[https://softgent.com/wp-content/uploads/2020/01/Zasob-14.png]<https://www.softgent.com>

Softgent Sp. z o.o., Budowlanych 31d, 80-298 Gdansk, POLAND

KRS: 0000674406, NIP: 9581679801, REGON: 367090912

www.softgent.com

Sąd Rejonowy Gdańsk-Północ w Gdańsku, VII Wydział Gospodarczy Krajowego 
Rejestru Sądowego

KRS 0000674406, Kapitał zakładowy: 25 000,00 zł wpłacony w całości.

Reply via email to