Dr Stephen Henson wrote:

> Antonio Lam wrote:
> >
> > Hi:
> >
> > I am trying to write a SSL enabled client program with certificated
> > based authentication.  My server is a Netscape Messaging Server
> > and they have the cert7.db and key3.db to store all there certificates
> > and keys.
> >
> > I am able to create both server certificate and client certificate, both
> >
> > are store in a Netscape way:  in cert7.db and key3.db file
> >
> > Does anyone know whether there is a way to convert a certificate and
> > key in cert7.db and key3.db to PEM format?
> > I need the PEM format certificate to implement a program with Perl's
> > SSLeay library, since the "use_certificate_file function only take the
> > PEM format...
> >
> > Please let me know if you have the answer.
> >
>
> Are the certificates visible if you use key3.db and cert7.db from
> Netscape? If so you can try exporting to a PKCS#12 file.
>

Yes, I can export it to PKCS#12 file.
Can I used the "pkcs12" utility from openSSL to convert it to pem format?
Just like this:

openssl pkcs12 -nocerts -in file.p12 -out cert.pem
openssl pkcs12 -nokeys -in file.p12 -out key.pem

thanks,
Antonio


>
> Steve.
> --
> Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
> Personal Email: [EMAIL PROTECTED]
> Senior crypto engineer, Celo Communications: http://www.celocom.com/
> Core developer of the   OpenSSL project: http://www.openssl.org/
> Business Email: [EMAIL PROTECTED] PGP key: via homepage.
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> Development Mailing List                       [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]

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

Reply via email to