Please download the source code and refer to apps/x509.c - this handles the conversion command, such as:
openssl x509 -in xxx.pem -inform pem -out xxx.cer -outform DER the function you will look for is i2d_X509_bio On 12 December 2016 at 09:37, Sairam Rangaswamy -X (sairanga - ARICENT TECHNOLOGIES MAURIITIUS LIMITED at Cisco) <saira...@cisco.com> wrote: > As I understand, the X509 certificates from CA or self-signed can be > created in either > > PEM or DER format. > > > > Is there a way to programmatically convert the PEM format file to DER or > DER to PEM? > > Is there a single API or set of APIs available from openssl libraries? > > > > Regards, > > R. Sairam > > *Sairam Rangaswamy* > > Architect > > saira...@cisco.com | Mobile +919880302240 <+91%2098803%2002240> | Office > +918041068409 <+91%2080%204106%208409> > > <https://www.aricent.com/> > > > > > > > > > > -- > openssl-users mailing list > To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users > >
-- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users