{"id":1823,"date":"2013-01-21T14:43:02","date_gmt":"2013-01-21T06:43:02","guid":{"rendered":"http:\/\/rmohan.com\/?p=1823"},"modified":"2013-01-21T14:43:17","modified_gmt":"2013-01-21T06:43:17","slug":"convert-the-pfx-file-for-apache","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=1823","title":{"rendered":"Convert the PFX file for Apache"},"content":{"rendered":"<p>Run the following command using OPENSSL:<\/p>\n<p>1. To export the Private key file from the .pfx file<br \/>openssl pkcs12 -in filename.p12\u00a0 -nocerts -out privatekey.key<br \/>2. To export the Certificate file from the .pfx file <br \/>openssl pkcs12 -in filename.p12 -clcerts -nokeys -out sslcert.crt<\/p>\n<p>filename.p12 (is your existing IIS PFX file)<br \/>privatekey.key (is your new exported private key file)<br \/>ssl.crt<\/p>\n<p>3. You now need to copy the\u00a0 files to the locations as described in the httpd.conf<br \/>4. To find out where the files should be copied to run this on the httpd.conf<\/p>\n<p>cat httpd.conf | grep SSLCertificateFile\u00a0\u00a0(this will give you the location of where to copy the certificate file)<\/p>\n<p>cat httpd.conf | grep SSLCertificateKeyFile\u00a0(this will give you the location of where to copy the key file)<\/p>\n<p>5. You will now need to restart apache<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Run the following command using OPENSSL:<\/p>\n<p>1. To export the Private key file from the .pfx fileopenssl pkcs12 -in filename.p12 -nocerts -out privatekey.key2. To export the Certificate file from the .pfx file openssl pkcs12 -in filename.p12 -clcerts -nokeys -out sslcert.crt<\/p>\n<p>filename.p12 (is your existing IIS PFX file)privatekey.key (is your new exported private key file)ssl.crt<\/p>\n<p>3. [&#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\/1823"}],"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=1823"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1823\/revisions"}],"predecessor-version":[{"id":1825,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1823\/revisions\/1825"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}