{"id":813,"date":"2016-02-12T16:42:02","date_gmt":"2016-02-12T14:42:02","guid":{"rendered":"http:\/\/dety.net.ua\/?p=813"},"modified":"2016-02-12T16:42:02","modified_gmt":"2016-02-12T14:42:02","slug":"pfx-to-key-and-crt-in-pem","status":"publish","type":"post","link":"https:\/\/dety.net.ua\/?p=813","title":{"rendered":"PFX to key and crt in PEM"},"content":{"rendered":"<p><strong>Extract Private Key: <\/strong><\/p>\n<p>The following command will extract private key from .pfx file. You can find the private key in file named <strong>private_key.pem<\/strong>.<\/p>\n<blockquote><p># openssl pkcs12 -in myfile.pfx -nocerts -out private_key.pem -nodes<\/p>\n<p>&nbsp;<\/p>\n<p>Enter Import Password:<\/p>\n<p>MAC verified OK<\/p><\/blockquote>\n<p><strong>Extract Certificate:<\/strong><\/p>\n<p>The following command will extract certificate from .pfx file. You can find the certificate in file named <strong>certificate_file.crt<\/strong>.<\/p>\n<blockquote><p># openssl pkcs12 -in myfile.pfx -nokeys -out certificate_file.crt<\/p>\n<p>&nbsp;<\/p>\n<p>Enter Import Password:<\/p>\n<p>MAC verified OK<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Extract Private Key: The following command will extract private key from .pfx file. You can find the private key in file named private_key.pem. # openssl pkcs12 -in myfile.pfx -nocerts -out private_key.pem -nodes &nbsp; Enter Import Password: MAC verified OK Extract Certificate: The following command will extract certificate from .pfx file. You can find the certificate [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,13,1],"tags":[],"class_list":["post-813","post","type-post","status-publish","format-standard","hentry","category-linux","category-novosti","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/813","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=813"}],"version-history":[{"count":1,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/813\/revisions"}],"predecessor-version":[{"id":814,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/813\/revisions\/814"}],"wp:attachment":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}