{"id":6606,"date":"2023-03-21T10:25:14","date_gmt":"2023-03-21T02:25:14","guid":{"rendered":"https:\/\/www.jameseduard.com\/?p=6606"},"modified":"2023-03-21T10:25:14","modified_gmt":"2023-03-21T02:25:14","slug":"how-to-convert-an-ssl-certificate-from-cer-to-pfx-format-with-openssl","status":"publish","type":"post","link":"https:\/\/www.jameseduard.com\/?p=6606","title":{"rendered":"How to convert an SSL certificate from .cer to .pfx format with Openssl"},"content":{"rendered":"\n\n\n<ol class=\"wp-block-list\">\n<li>First, make sure you have OpenSSL installed on your system. If you don&#8217;t have it installed, you can download it from <a href=\"https:\/\/www.openssl.org\/\">https:\/\/www.openssl.org\/<\/a>.<\/li>\n\n\n\n<li>Open a command prompt or terminal window and navigate to the directory where your SSL certificate files are located.<\/li>\n\n\n\n<li>Run the following command to convert the .cer file to .pem format:csharp<br><code>openssl x509 -inform der -in yourdomain.cer -out yourdomain.pem<\/code><\/li>\n\n\n\n<li>Run the following command to convert the private key file to .pem format:csharp<br><code>openssl rsa -in yourdomain.key -out yourdomainkey.pem<\/code><\/li>\n\n\n\n<li>Finally, run the following command to convert the .pem files to .pfx format: objective<br>openssl pkcs12 -export -out yourdomain.pfx -inkey yourdomainkey.pem -in yourdomain.pem<\/li>\n\n\n\n<li>You will be prompted to enter a password for the .pfx file. Enter a secure password and confirm it.<\/li>\n\n\n\n<li>The resulting .pfx file will be created in the same directory as your SSL certificate files.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">That&#8217;s it! You now have a .pfx file that contains both your SSL certificate and private key, which you can use to install the SSL certificate on your server.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>That&#8217;s it! You now have a .pfx file that contains both your SSL certificate and private key, which you can use to install the SSL certificate on your server.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[47],"tags":[607,955,610],"class_list":["post-6606","post","type-post","status-publish","format-standard","hentry","category-how-tos","tag-openssl","tag-pem","tag-ssl"],"_links":{"self":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts\/6606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6606"}],"version-history":[{"count":0,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts\/6606\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}