I'm trying to extract only the public key of a certificate.
In the X509* I have found the variable:
   cert_info->key->public_key

This seems to be what I need except it also contains some header bytes.
What is this header and how long is it ?
I can see that for a 1024 bit RSA key, it is 4 bytes, but for a 512 bit RSA
key it only seems to be 3 bytes.

....or is there already an OpenSSL function to extract the "raw" key
(modulus and public exponent) ?

TIA
Kim Hellan
KMD / KMD-CA
http://www.kmd-ca.dk
Mailto:[EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to