Hi,

I am new to OPENSSL. I have a certificate, i need to extract public key and
serial number from it. I know the command to do that, but i wanted to use
api in my application.

Command to get the public key from the certificate:

openssl x509 -inform pem -in <Certificate_name> -pubkey -noout > <publickey
file name>

Command to get the serial number from the certificate:

openssl x509 -in <Certificate file name> -serial -noout > <serial number
file name>

Could you please help me with the corresponding apis for these two commands?

Thank you very much.

regards
Praveen
-- 
View this message in context: 
http://old.nabble.com/Extract-of-Public-key-and-Serial-number-from-Certificate-tp33354749p33354749.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to