Topic: Generate Public key from a pfx file using pkcs12 algorithm

We want to generate the PublicKey.pem file using wolfssl ecc algorithm from a certificate file that is extracted from a pfx file using pkcs12 algorithm in Openssl command prompt.

Please help to achieve this.

Share

Re: Generate Public key from a pfx file using pkcs12 algorithm

Hello cvinothkumar,

Thanks for joining the wolfSSL Forums. You'll want to use wc_PKCS12_parse to get the DER cert out of the bundle.
https://github.com/wolfSSL/wolfssl-exam … -example.c

Then you can retrieve the public key from the DER cert
https://github.com/wolfSSL/wolfssl-exam … m-certfile

Could you tell us a bit about your project?

Thanks,
Eric - wolfSSL Support