> Hi all, > > How to extract the public key from the certificate?
1) Read in the certificate. 2) Extract the public key. > I have a question on the function: PEM_read_RSA_PUBKEY and > PEM_read_bio_RSA_PUBKEY. > > The argument to these function is FILE *fp and BIO *bp respectively. > > Does this argument contain a X509 certificate? This I ask, since > the public > key is present in the certificate, and I want to extract the > public key from > the cert. No, these functions read in a public key, which you don't have. You want functions like 'PEM_read_bio_X509' followed by 'X509_get_pubkey'. DS ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]