EVP_PKEY_pairwise_check(3) fails with error:0300009A:digital envelope routines::no key set

Kip Warner kip at thevertigo.com
Sun May 29 02:12:47 UTC 2022


Hey list,

I am in the process of porting some RSA related code that used OpenSSL
1.1.1 to the newer 3.0 API. A lot of the functions I was using are now
deprecated. I've tried to follow the migration guide as best I can.

Right now I am having an issue generating an RSA key pair:

   https://pastebin.com/jbLdqUdv

Note that the call to EVP_PKEY_pairwise_check(3) fails on L66 with
"error:0300009A:digital envelope routines::no key set". This error
string was set by OpenSSL internally.

I'm not sure exactly what I'm doing wrong. All I want to do is generate
the RSA key pair and then verify that this was done correctly.

Any help appreciated.

Yours truly,

-- 
Kip Warner
OpenPGP signed/encrypted mail preferred
https://www.thevertigo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20220528/6ae0e378/attachment.sig>


More information about the openssl-users mailing list