Roger,

    If you want to retreive your own certs (that is, the ones you'll send to
the peer) you are probably better off just "remembering" where you got
the certificates you used to initialized the SSL_CTX with via
SSL_CTX_load_verify_locations().

Read them in again using the example function ReadPublicKey() of
openssl-0.9.6/demos/maurice/loadkeys.c

You also might find that the x509 utility's -C option does just what you
want. Try openssl x509 -in <certifle> -C -noout

--
Greg Stark, [EMAIL PROTECTED]
Ethentica, Inc.
www.ethentica.com



----- Original Message -----
From: "Roger Davenport" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 15, 2001 5:02 PM
Subject: Getting certificates out of the SSL_CTX?


> I want to get at the SSL_CTX->cert .  What I really want is to pull the
> RSA public key from a certificate.
>
> I have looked at  SSL_CTX_get_cert_store(ssl_ctx); but there is no place
> to go from there...
>
> any help is appreciated.
>
> Thanks.
> Roger
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to