{"id":1826,"date":"2013-01-21T14:43:53","date_gmt":"2013-01-21T06:43:53","guid":{"rendered":"http:\/\/rmohan.com\/?p=1826"},"modified":"2013-01-21T15:45:28","modified_gmt":"2013-01-21T07:45:28","slug":"openssl-commands-to-convert-ssl-certificates-on-your-machine","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=1826","title":{"rendered":"OpenSSL Commands to Convert SSL Certificates on Your Machine"},"content":{"rendered":"<p><strong>Convert PEM to DER<\/strong><\/p>\n<p><code>openssl x509 -outform der -in certificate.pem -out certificate.der<\/code><\/p>\n<p><strong>Convert PEM to P7B<\/strong><\/p>\n<p><code> openssl crl2pkcs7 -nocrl -certfile certificate.cer -out certificate.p7b -certfile CACert.cer<\/code><\/p>\n<p><strong>Convert PEM to PFX<\/strong><\/p>\n<p><code>openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt<\/code><\/p>\n<h3>OpenSSL Convert DER<\/h3>\n<p><strong>Convert DER to PEM<br \/> <\/strong><\/p>\n<p><code>openssl x509 -inform der -in certificate.cer -out certificate.pem<\/code><\/p>\n<h3>OpenSSL Convert P7B<\/h3>\n<p><strong>Convert P7B to PEM<\/strong><\/p>\n<p><code>openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer<\/code><\/p>\n<p><strong>Convert P7B to PFX<\/strong><\/p>\n<p><code>openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer<\/code><\/p>\n<p><code>openssl pkcs12 -export -in certificate.cer -inkey privateKey.key -out certificate.pfx -certfile CACert.cer<\/code><\/p>\n<h3>OpenSSL Convert PFX<\/h3>\n<p><strong>Convert PFX to PEM<\/strong><\/p>\n<p><code>openssl pkcs12 -in certificate.pfx -out certificate.cer -nodes<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Convert PEM to DER<\/p>\n<p>openssl x509 -outform der -in certificate.pem -out certificate.der<\/p>\n<p>Convert PEM to P7B<\/p>\n<p> openssl crl2pkcs7 -nocrl -certfile certificate.cer -out certificate.p7b -certfile CACert.cer<\/p>\n<p>Convert PEM to PFX<\/p>\n<p>openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt<\/p>\n<p> OpenSSL Convert DER <\/p>\n<p>Convert DER to PEM <\/p>\n<p>openssl x509 -inform der -in certificate.cer [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1826"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1826"}],"version-history":[{"count":2,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1826\/revisions"}],"predecessor-version":[{"id":1828,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1826\/revisions\/1828"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1826"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}