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) <sairanga@xxxxxxxxx> 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
sairanga@xxxxxxxxx | Mobile +919880302240 | Office +918041068409
--
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