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
> 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
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.
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
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
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