Hylton Tregenza wrote:
>Sorry, I asked to early, There is nothing wrong with the code. The file
>is not a public key file (or the format isd wrong) How do I extract a
>public key file from a certificate?

by command line:
        $ openssl x509 -in cert.pem -pubkey -noout

by writing some code:
        How about to use  X509_get_pubkey function?

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

Reply via email to