{"id":70,"date":"2023-03-19T08:13:21","date_gmt":"2023-03-19T07:13:21","guid":{"rendered":"http:\/\/10.4.44.99:10084\/?p=70"},"modified":"2023-03-19T08:13:21","modified_gmt":"2023-03-19T07:13:21","slug":"openssl-convert-certificate-pfx-into-pem-crt-key","status":"publish","type":"post","link":"https:\/\/www.winni.at\/wordpress\/?p=70","title":{"rendered":"Openssl | Convert Certificate pfx into pem | crt | key"},"content":{"rendered":"\n<p>I will describe how to convert a pfx certifcate file which includes a password to different formats by using openssl.<\/p>\n\n\n\n<p>Export Certificate from pfx to pem<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>openssl pkcs12 -in certname.pfx -out certname.pem -nokeys\n<\/code><\/pre>\n\n\n\n<p>Export Key&nbsp;from pfx (Output&nbsp;file is password protected)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>openssl pkcs12 -in certname.pfx -out certnameKEY.pem -nocerts\n<\/code><\/pre>\n\n\n\n<p>Export&nbsp;Key&nbsp;from pfx (Output&nbsp;file is NOT password protected)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>openssl pkcs12 -in certname.pfx -out certnameKEY.pem -nocerts\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>openssl rsa -in certnameKEY.pem -out certnameKEY.key<\/code><\/pre>\n\n\n\n<p>Convert cer to pem<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>openssl x509 -inform der -in certname.cer -out certname.pem<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I will describe how to convert a pfx certifcate file which includes a password to different formats by using openssl.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[3],"tags":[16,17,50,51,115,150,153,154],"class_list":["post-70","post","type-post","status-publish","format-standard","hentry","category-kb","tag-certificate-convert","tag-certificate-convert-openssl","tag-convert-certificate","tag-crt","tag-key","tag-openssl","tag-pem","tag-pfx"],"_links":{"self":[{"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/70","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=70"}],"version-history":[{"count":0,"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/70\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}