<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1027" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">As I understand, the X509 certificates from CA or self-signed can be created in either<o:p></o:p></p>
<p class="MsoNormal">PEM or DER format.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is there a way to programmatically convert the PEM format file to DER or DER to PEM?<o:p></o:p></p>
<p class="MsoNormal">Is there a single API or set of APIs available from openssl libraries?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">R. Sairam<o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%">
<tbody>
<tr>
<td style="padding:3.75pt 0in 3.75pt 0in">
<p class="MsoNormal" style="line-height:115%"><b><span style="font-size:9.0pt;line-height:115%;font-family:"Helvetica","sans-serif"">Sairam Rangaswamy</span></b><span style="font-size:9.0pt;line-height:115%;font-family:"Helvetica","sans-serif""><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:3.75pt 0in 3.75pt 0in">
<p class="MsoNormal" style="line-height:115%"><span style="font-size:9.0pt;line-height:115%;font-family:"Helvetica","sans-serif"">Architect</span><span style="font-size:9.0pt;line-height:115%;font-family:"Helvetica","sans-serif""><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:3.75pt 0in 3.75pt 0in">
<p class="MsoNormal" style="line-height:115%"><span style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif""><a href="mailto:sairanga@cisco.com"><span style="color:blue">sairanga@cisco.com</span></a> | Mobile +919880302240 | Office +918041068409</span><span style="font-size:9.0pt;line-height:115%;font-family:"Helvetica","sans-serif""><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:3.75pt 0in 3.75pt 0in">
<p class="MsoNormal" style="line-height:115%"><a href="https://www.aricent.com/"><span style="font-size:9.0pt;line-height:115%;font-family:"Helvetica","sans-serif";color:windowtext;text-decoration:none"><img border="0" width="246" height="62" id="Picture_x0020_4" src="cid:image002.jpg@01D25489.7A99ACB0"></span></a><span style="font-size:9.0pt;line-height:115%;font-family:"Helvetica","sans-serif"">  
<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:115%"><span style="font-size:9.0pt;line-height:115%;font-family:"Helvetica","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:115%"><span style="font-size:9.0pt;line-height:115%;font-family:"Helvetica","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:115%"><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter" />
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0" />
<v:f eqn="sum @0 1 0" />
<v:f eqn="sum 0 0 @1" />
<v:f eqn="prod @2 1 2" />
<v:f eqn="prod @3 21600 pixelWidth" />
<v:f eqn="prod @3 21600 pixelHeight" />
<v:f eqn="sum @0 0 1" />
<v:f eqn="prod @6 1 2" />
<v:f eqn="prod @7 21600 pixelWidth" />
<v:f eqn="sum @8 21600 0" />
<v:f eqn="prod @7 21600 pixelHeight" />
<v:f eqn="sum @10 21600 0" />
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect" />
<o:lock v:ext="edit" aspectratio="t" />
</v:shapetype><v:shape id="Straight_x0020_Connector_x0020_2" o:spid="_x0000_s1026" type="#_x0000_t75" style='position:absolute;margin-left:-1.25pt;margin-top:5.5pt;width:483pt;height:.75pt;z-index:251659264;visibility:visible;mso-width-percent:0;mso-height-percent:0;mso-wrap-distance-left:9pt;mso-wrap-distance-top:0;mso-wrap-distance-right:9pt;mso-wrap-distance-bottom:0;mso-position-horizontal:absolute;mso-position-horizontal-relative:text;mso-position-vertical:absolute;mso-position-vertical-relative:text;mso-width-percent:0;mso-height-percent:0;mso-width-relative:margin;mso-height-relative:margin'>
<v:imagedata src="cid:image003.png@01D25489.7A99ACB0" o:title="" />
<o:lock v:ext="edit" aspectratio="f" />
</v:shape><![endif]--><![if !vml]><span style="mso-ignore:vglayout;position:absolute;z-index:251659264;margin-left:-2px;margin-top:7px;width:644px;height:1px"><img width="644" height="1" src="cid:image003.png@01D25489.7A99ACB0" v:shapes="Straight_x0020_Connector_x0020_2"></span><![endif]><span style="font-size:9.0pt;line-height:115%;font-family:"Helvetica","sans-serif""><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>