Dear Group,

I want to use the openssl crypt library to sign and verify messages.
Apparently I can use a RSA struct and RSA_sign and RSA_verify for that.

however my certificates are of the form
-----BEGIN CERTIFICATE-----
MIIDDTCCAnagAwIBAgIJAMWKwoNrQvTvMA0GCSqGSIb3DQEBBQUAMGMxCzAJBgNV
...
-----END CERTIFICATE-----

how ever can I load such a certificate into my RSA struct?
concerning encryption, for public and private keys I could use
PEM_read_RSAPublicKey and PEM_read_bio_RSAPublicKey
to load my keys.

Are there methods like this for certificates and certificate private keys?

Thank You!

Michael

Reply via email to