RE: get public Key from a certificate

2009-02-24 Thread Giang Nguyen
if you have a certificate in a X509 object, the x509.h header mentions the function: EVP_PKEY *X509_get_pubkey(X509 *x); From: binome_...@hotmail.com To: openssl-users@openssl.org Subject: get public Key from a certificate Date: Tue, 24 Feb 2009 10:29:42 + hello how can i get the

get public Key from a certificate

2009-02-24 Thread sarym binome
hello how can i get the public Key from a certificate ? ( please give me just the name of the function, for example i use to get a public key from a private key : PrivKey = RSA_generate_key(512, RSA_F4, NULL, NULL); PubKey = RSAPublicKey_dup(PrivKey); ) if i send a certificate , i

Re: Get public key from a certificate

2005-08-29 Thread Goetz Babin-Ebell
Angel Martinez Gonzalez wrote: > Hello: > > I have a certificate in char * format, and I want to get his public key. > > Are there an OpenSSL function to do this?. Define char * format. If you have a char * pointing to a certificate in PEM format, you can do a BIO_new_mem_buf() and create a BIO

Get public key from a certificate

2005-08-29 Thread Angel Martinez Gonzalez
Hello: I have a certificate in char * format, and I want to get his public key. Are there an OpenSSL function to do this?. Thanks. __ OpenSSL Project http://www.openssl.org User Support Mailing Li