{"id":447,"date":"2013-07-12T17:43:38","date_gmt":"2013-07-12T15:43:38","guid":{"rendered":"http:\/\/dety.net.ua\/?p=447"},"modified":"2021-12-06T16:34:41","modified_gmt":"2021-12-06T14:34:41","slug":"convert-pfx-to-crt-and-key","status":"publish","type":"post","link":"https:\/\/dety.net.ua\/?p=447","title":{"rendered":"Convert PFX to CRT and KEY"},"content":{"rendered":"<p>You just need to run some commands (you need enter password for pfx and new password for key &#8211; it must be different):<\/p>\n<p><code>export crt from pfx: <\/code><\/p>\n<blockquote><p><code>openssl pkcs12 -in file.pfx -nocerts -out file.key<\/code><\/p><\/blockquote>\n<p><code>export key from pfx: <\/code><\/p>\n<blockquote><p><code>openssl pkcs12 -in file.pfx -clcerts -nokeys -out cert.crt<\/code><\/p><\/blockquote>\n<p><code>decrypt key: <\/code><\/p>\n<blockquote><p><code>openssl rsa -in file.key -out file2.key<\/code><\/p><\/blockquote>\n<p>without decryption your server will ask you for the password for key file.<\/p>\n<p>P.S.: To create a bundle you need to copy your\u00a0 crt and CA crts into one file. Your CRT must be the first.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You just need to run some commands (you need enter password for pfx and new password for key &#8211; it must be different): export crt from pfx: openssl pkcs12 -in file.pfx -nocerts -out file.key export key from pfx: openssl pkcs12 -in file.pfx -clcerts -nokeys -out cert.crt decrypt key: openssl rsa -in file.key -out file2.key without [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,6,13],"tags":[],"class_list":["post-447","post","type-post","status-publish","format-standard","hentry","category-freebsd","category-linux","category-novosti"],"_links":{"self":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/447","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=447"}],"version-history":[{"count":3,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/447\/revisions"}],"predecessor-version":[{"id":1151,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/447\/revisions\/1151"}],"wp:attachment":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}