On Fri, Mar 26, 2004, Carlos Roberto Zainos H wrote: > Hi all !!! > > I've been working for a while with the cipher and digest RC4-SHA1 routines > for a project, but now I want to use the X509 libraries to handle an > certificate.cer issued by a local CA. I've looked and been tried with > d2i_X509 and d2i_X509_fp routines but my tests fails. > > So .. my question is ... how can (or must) I convert a CER certificate into > a DER or PEM certificate with the X509 certificate handle routines ???. I > could solve my last problems with SHA1 and RC4 but this time I can't ..... > sorry I'm a newbie... >
I've seen .cer files in both PEM, DER and base64 (without PEM headers) format so it could be any... See if the command: openssl x509 -in file.cer -noout -text works. If it does then you can use the PEM routines such as PEM_read_bio_X509() to load it. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]