Re: [openssl-users] convert from PEM to DER format or vice versa

2016-12-12 Thread Jakob Bohm
On 12/12/2016 10:37, Sairam Rangaswamy -X (sairanga - ARICENT TECHNOLOGIES MAURIITIUS LIMITED at Cisco) 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 D

Re: [openssl-users] convert from PEM to DER format or vice versa

2016-12-12 Thread Carl Young
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 TECHNOLOGI

[openssl-users] convert from PEM to DER format or vice versa

2016-12-12 Thread Sairam Rangaswamy -X (sairanga - ARICENT TECHNOLOGIES MAURIITIUS LIMITED at Cisco)
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 Rangasw