{"id":397,"date":"2013-12-17T12:20:39","date_gmt":"2013-12-17T12:20:39","guid":{"rendered":"http:\/\/www.bartons.org.uk\/?page_id=397"},"modified":"2013-12-17T12:20:39","modified_gmt":"2013-12-17T12:20:39","slug":"how-to-convert-pfx-certificate-to-pem-format","status":"publish","type":"page","link":"https:\/\/www.bartons.org.uk\/?page_id=397","title":{"rendered":"How to Convert PFX Certificate to PEM Format"},"content":{"rendered":"<p>f you have requested and installed a certificate onto a Windows server using the\u00a0<i>Internet Information Service (IIS)<\/i>\u00a0certificate wizard, you can export that certificate with its private key to a\u00a0<i>Personal Information Exchange (PFX)<\/i>\u00a0file.format.<\/p>\n<p>You can use the open-source utility\u00a0<b>OpenSSL<\/b>\u00a0to perform the conversion from PFX to PEM. You can download a Win32 distribution of OpenSSL here:<\/p>\n<p><span style=\"text-decoration: underline;\"><a href=\"http:\/\/www.slproweb.com\/products\/Win32OpenSSL.html\" target=\"_top\" rel=\"noopener\">http:\/\/www.slproweb.com\/products\/Win32OpenSSL.html<\/a><\/span><a name=\"P12_1323\"><\/a><\/p>\n<p>You might also need C++ re-distributable files if you want to use OpenSSL which can be obtained at the following URL:<span style=\"text-decoration: underline;\"><a href=\"http:\/\/www.microsoft.com\/downloads\/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;displaylang=en\" target=\"_top\" rel=\"noopener\">http:\/\/www.microsoft.com\/downloads\/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;displaylang=en<\/a><\/span><a name=\"P14_1549\"><\/a><\/p>\n<p>To convert a PFX file to a PEM file, follow these steps on a Windows machine:<\/p>\n<div>\n<ul>\n<li value=\"1\">Download and install the Win32 OpenSSL (Win32 OpenSSL v0.9.8i) package from\u00a0<span style=\"text-decoration: underline;\"><a href=\"http:\/\/www.slproweb.com\/products\/Win32OpenSSL.html\" target=\"_top\" rel=\"noopener\">http:\/\/www.slproweb.com\/products\/Win32OpenSSL.html<\/a><\/span><a name=\"P18_1755\"><\/a><\/li>\n<\/ul>\n<\/div>\n<div>\n<ul>\n<li value=\"2\">Create a folder\u00a0<b>c:\\certs<\/b>\u00a0and copy the file yourcert.pfx into the c:\\certs folder.<\/li>\n<\/ul>\n<\/div>\n<div>\n<ul>\n<li value=\"3\">Open a command prompt and change into the OpenSSL\\bin directory:\u00a0<b><br \/>\ncd %homedrive%\\OpenSSL\\bin<\/b><\/li>\n<\/ul>\n<\/div>\n<div>\n<ul>\n<li value=\"4\">Type the following command to convert the PFX file to an unencrypted PEM file (all on one line):<b><br \/>\nopenssl pkcs12 -in c:\\certs\\<i>yourcert<\/i>.pfx -out c:\\certs\\cag.pem \u2013nodes<\/b><\/li>\n<\/ul>\n<\/div>\n<p><img decoding=\"async\" alt=\"\" src=\"http:\/\/support.citrix.com\/article\/html\/images\/CTX106028-1.gif\" height=\"206\" border=\"0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>f you have requested and installed a certificate onto a Windows server using the\u00a0Internet Information Service (IIS)\u00a0certificate wizard, you can export that certificate with its private key to a\u00a0Personal Information Exchange (PFX)\u00a0file.format. You can use the open-source utility\u00a0OpenSSL\u00a0to perform the conversion from PFX to PEM. You can download a Win32 distribution of OpenSSL here: http:\/\/www.slproweb.com\/products\/Win32OpenSSL.html [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":70,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-397","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.bartons.org.uk\/index.php?rest_route=\/wp\/v2\/pages\/397","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bartons.org.uk\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bartons.org.uk\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bartons.org.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bartons.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=397"}],"version-history":[{"count":0,"href":"https:\/\/www.bartons.org.uk\/index.php?rest_route=\/wp\/v2\/pages\/397\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.bartons.org.uk\/index.php?rest_route=\/wp\/v2\/pages\/70"}],"wp:attachment":[{"href":"https:\/\/www.bartons.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}