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

Carl Young youca04 at gmail.com
Mon Dec 12 10:56:29 UTC 2016


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 at 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
>
> sairanga at 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20161212/55c060ec/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 138 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20161212/55c060ec/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 3608 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20161212/55c060ec/attachment.jpg>


More information about the openssl-users mailing list