<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Ok not fixed in 0.4.11 it is fixed in master branch... i need to build it from master.</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Od:</b> openssl-users <openssl-users-bounces@openssl.org> w imieniu użytkownika Piotr Lobacz <piotr.lobacz@softgent.com><br>
<b>Wysłane:</b> wtorek, 1 czerwca 2021 17:18<br>
<b>Do:</b> Selva Nair <selva.nair@gmail.com><br>
<b>DW:</b> openssl-users@openssl.org <openssl-users@openssl.org><br>
<b>Temat:</b> ODP: CSR creation using pkcs11 dynamic engine</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi Selva,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
btw. i have found one issue in libp11 package <a href="https://github.com/OpenSC/libp11/issues/304" id="LPlnk228003">https://github.com/OpenSC/libp11/issues/304</a> and i have used 0.4.10 i will check firstly with 0.4.11 and give you answer.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
BR</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Piotr</div>
<div id="x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Od:</b> Selva Nair <selva.nair@gmail.com><br>
<b>Wysłane:</b> wtorek, 1 czerwca 2021 17:15<br>
<b>Do:</b> Piotr Lobacz <piotr.lobacz@softgent.com><br>
<b>DW:</b> openssl-users@openssl.org <openssl-users@openssl.org><br>
<b>Temat:</b> Re: CSR creation using pkcs11 dynamic engine</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">Hi Piotr,</div>
<br>
<div class="x_x_gmail_quote">
<div dir="ltr" class="x_x_gmail_attr">On Tue, Jun 1, 2021 at 10:57 AM Piotr Lobacz <<a href="mailto:piotr.lobacz@softgent.com">piotr.lobacz@softgent.com</a>> wrote:<br>
</div>
<blockquote class="x_x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
i have managed to find the engine method static EVP_PKEY *load_privkey(ENGINE *engine, const char *s_key_id, <span>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 <span style="background-color:rgb(255,255,255); display:inline">
RSA_FLAG_EXT_PKEY </span>in EVP_PKEY object which i don't know how to do is it even possible?<br>
</span></div>
</div>
</blockquote>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Selva</div>
</div>
</div>
</div>
<a href="https://www.softgent.com" target="_blank"><img width="150" height="50" src="https://softgent.com/wp-content/uploads/2020/01/Zasob-14.png"></a>
<p style="color:gray; display:block; font-size:9px; text-transform:uppercase; margin:0; margin-top:10px">
<b>Softgent Sp. z o.o.</b>, Budowlanych 31d, 80-298 Gdansk, POLAND</p>
<p style="color:gray; display:block; font-size:9px; text-transform:uppercase; margin:0">
KRS: 0000674406, NIP: 9581679801, REGON: 367090912</p>
<p style="color:gray; display:block; font-size:9px; text-transform:uppercase; margin:0">
www.softgent.com</p>
<p style="color:gray; display:block; font-size:9px; text-transform:uppercase; margin:0; margin-top:10px">
Sąd Rejonowy Gdańsk-Północ w Gdańsku, VII Wydział Gospodarczy Krajowego Rejestru Sądowego</p>
<p style="color:gray; display:block; font-size:9px; text-transform:uppercase; margin:0">
KRS 0000674406, Kapitał zakładowy: 25 000,00 zł wpłacony w całości.</p>
</div>
</body>
</html>