OpenSSL3/libp11 RSA keygen

Alexandre Gonzalo via Opensc-devel <[email protected]> Tue, 15 Nov 2022 14:55:32 +0000
Newsgroups gmane.comp.encryption.opensc.devel
Message-ID <CWXP123MB4136FBA9AB58240B8DA798A3F6049@CWXP123MB4136.GBRP123.PROD.OUTLOOK.COM>
--===============4637911837954019483==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_CWXP123MB4136FBA9AB58240B8DA798A3F6049CWXP123MB4136GBRP_"

--_000_CWXP123MB4136FBA9AB58240B8DA798A3F6049CWXP123MB4136GBRP_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi All,

I'd like to know if the libp11 engine officially supports OpenSSL v3.
I am trying to generate an RSA key with the following command and I have an=
 error:
openssl genrsa -out dummy 4096
Error setting RSA length
F85455EE79000000:error:03000093:digital envelope routines:evp_pkey_ctx_ctrl=
_int:command not supported:crypto/evp/pmeth_lib.c:1324:

It is working fine when I don't use the engine.

I initially thought that it was a bug in OpenSSL and reported the issue:
https://github.com/openssl/openssl/issues/19680

Do you have any idea?

Regards,
Alexandre.




Trustonic SAS - 535 route de Lucioles, Les Aqueducs Batiment 2, Sophia Anti=
polis 06560 Valbonne, France - SAS au capital de 3 038 000EUR - RCS Grasse =
- SIRET 480 011 998 00055 - TVA intracommunautaire : FR02 480 011 998

--_000_CWXP123MB4136FBA9AB58240B8DA798A3F6049CWXP123MB4136GBRP_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class=
=3D"elementToProof">
Hi All,</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class=
=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class=
=3D"elementToProof">
I'd like to know if the libp11 engine officially supports OpenSSL v3.</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class=
=3D"elementToProof">
I am trying to generate an RSA key with the following command and I have an=
&nbsp;error:</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class=
=3D"elementToProof ContentPasted0">
openssl genrsa -out dummy 4096<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class=
=3D"elementToProof ContentPasted0 ContentPasted1">
Error setting RSA length<br class=3D"ContentPasted1">
F85455EE79000000:error:03000093:digital envelope routines:evp_pkey_ctx_ctrl=
_int:command not supported:crypto/evp/pmeth_lib.c:1324:<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class=
=3D"elementToProof ContentPasted0 ContentPasted1">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class=
=3D"elementToProof ContentPasted0 ContentPasted1">
It is working fine when I don't use the engine.</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class=
=3D"elementToProof ContentPasted0 ContentPasted1">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class=
=3D"elementToProof ContentPasted0 ContentPasted1">
I initially thought that it was a bug in OpenSSL and reported the issue:</d=
iv>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class=
=3D"elementToProof ContentPasted0 ContentPasted1 ContentPasted2">
<a href=3D"https://github.com/openssl/openssl/issues/19680" id=3D"LPNoLPOWA=
LinkPreview">https://github.com/openssl/openssl/issues/19680</a><br>
</div>
<div class=3D"_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_=
1"></div>
<br>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class=
=3D"elementToProof ContentPasted0 ContentPasted1 ContentPasted2">
Do you have any idea?</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class=
=3D"elementToProof ContentPasted0 ContentPasted1 ContentPasted2">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class=
=3D"elementToProof ContentPasted0 ContentPasted1 ContentPasted2">
Regards,</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class=
=3D"elementToProof ContentPasted0 ContentPasted1 ContentPasted2">
Alexandre.</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class=
=3D"elementToProof ContentPasted0 ContentPasted1 ContentPasted2">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class=
=3D"elementToProof ContentPasted0 ContentPasted1 ContentPasted2">
<br>
</div>
<br>
<div style=3D"font-size:9pt;  font-family: 'Calibri',sans-serif;">
<p style=3D"font-size:7pt; line-height:9pt; color:#bebebe; font-family: 'Ca=
libri', Arial, Verdana, serif;">
Trustonic SAS - 535 route de Lucioles, Les Aqueducs Batiment 2, Sophia Anti=
polis 06560 Valbonne, France &#8211; SAS au capital de 3 038 000&#8364; - R=
CS Grasse &#8211; SIRET 480 011 998 00055 - TVA intracommunautaire : FR02 4=
80 011 998</p>
</div>
</body>
</html>

--_000_CWXP123MB4136FBA9AB58240B8DA798A3F6049CWXP123MB4136GBRP_--


--===============4637911837954019483==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============4637911837954019483==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Opensc-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensc-devel

--===============4637911837954019483==--