PEM to EVP_PKEY

Kory Hamzeh kory at avatarci.com
Sun Sep 25 23:12:57 UTC 2022


Hello,

So I have a PEM formatted file that contains an EC certificate and a private key. I need to load that PEM file and converted to an EVP_PKEY. The goal of this exercise is so that I can do an ECDH pairwise consistency test (SP 800-56Ar3 Section 5.6.2.1.4) on the key pair by calling EVP_PKEY_pairwise_check(). I need some help in getting from the PEM file to an EVP_PKEY.

Thanks,
Kory



More information about the openssl-users mailing list