Re: Extract public key from certificate

2009-01-08 Thread Mounir IDRASSI
the function "PEM_write_PUBKEY" on this pointer to save the public key to a file. Regards, -- Mounir IDRASSI IDRIX http://www.idrix.fr Vincent CLUZAUD wrote: Dear users, I want to extract public key from certificate (*.cer file) in C++ (with visual C++). In command, I can do tha

RE: Extract public key from certificate

2009-01-08 Thread Giang Nguyen
> then you can try X509_set_pubkey() (in x509.h) to obtain the "EVP_PKEY *" > object of course i meant X509_get_pubkey(). _ Windows Live™: Keep your life in sync. http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_allup_howitw

RE: Extract public key from certificate

2009-01-08 Thread Giang Nguyen
if you have the "X509 *" object (in your code), then you can try X509_set_pubkey() (in x509.h) to obtain the "EVP_PKEY *" object, then you can use the various PEM_write_..._RSAPublicKey() (in pem.h). _ Windows Live™ Hotmail®: Chat.

Extract public key from certificate

2009-01-08 Thread Vincent CLUZAUD
Dear users, I want to extract public key from certificate (*.cer file) in C++ (with visual C++). In command, I can do that with this command : c:\OpenSSL\bin\openssl x509 -inform pem -in certificate.cer -pubkey -noout > publickey.pem Could you telle how to do that in C++? Thanks

Re: How to extract public key from Certificate

2007-05-06 Thread Kyle Hamilton
alo <[EMAIL PROTECTED]> wrote: Hello everybody, I have question, how can I extract public key from certificate file. It is possible via openssl. I found out only way of extracting from private key file but no from certificate. extracting from private key file: openssl rsa -in privatekey

How to extract public key from Certificate

2007-05-06 Thread Metalpalo
Hello everybody, I have question, how can I extract public key from certificate file. It is possible via openssl. I found out only way of extracting from private key file but no from certificate. extracting from private key file: openssl rsa -in privatekey.pem -out publickey.pem -pubout