{"id":1155,"date":"2012-03-19T16:15:52","date_gmt":"2012-03-19T23:15:52","guid":{"rendered":"http:\/\/blog.networkpresence.co\/?p=1155"},"modified":"2018-08-15T18:45:04","modified_gmt":"2018-08-16T01:45:04","slug":"creating-a-ssl-key-csr","status":"publish","type":"post","link":"http:\/\/blog.networkpresence.co\/?p=1155","title":{"rendered":"Creating a SSL Key &#038; CSR"},"content":{"rendered":"<p>All done with a single command and then working through the interactive prompts and no password is mandatory, so you can just press the &#8216;enter&#8217; key at the Key Password prompts..<\/p>\n<p><code>openssl req -new -newkey rsa:2048 -nodes -keyout SERVERNAME.key  -out SERVERNAME.csr<\/code><\/p>\n<p>If you want to create a Key and CSR using the &#8220;SHA2&#8221; or SHA256 encryption, add the &#8220;-sha256&#8221; parameter to the above openssl command-line.<\/p>\n<p>Viewing a Certificate&#8217;s details with info from http:\/\/www.madboa.com\/geek\/openssl\/#cert-exam<\/p>\n<p>CSR Info is viewed via this command line:<\/p>\n<p><code>openssl req -in FILE.csr -noout -text<\/code><\/p>\n<p>Certificate Info is viewed via this command line:<\/p>\n<p><code>openssl x509 -text -in FILE.crt<\/code><\/p>\n<p>If you want to convert a .pfx file to a .key file, use:<\/p>\n<p><code>openssl pkcs12 -in SERVERNAME.pfx -nocerts -nodes -out SERVERNAME.key<\/code><\/p>\n<p>To convert from a PEM based or PCKS7 (.p7b) Cert file (with its key) to the .pfx format single file, use:<\/p>\n<p><code>openssl pkcs7 -print_certs -in NAME.p7b -out NAME.cer<br \/>\nopenssl pkcs12 -export -in NAME.cer -inkey NAME.key -out NAME.pfx<\/code><\/p>\n<p>More information and details will be posted to this blog entry over time..<\/p>\n<p>Here&#8217;s good openssl CSR generation info for EV based Certs in 2015: https:\/\/certsimple.com\/blog\/openssl-csr-command<\/p>\n<p>FYI,<br \/>\nRichard.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>All done with a single command and then working through the interactive prompts and no password is mandatory, so you can just press the &#8216;enter&#8217; key at the Key Password prompts.. openssl req -new -newkey rsa:2048 -nodes -keyout SERVERNAME.key -out &hellip; <a href=\"http:\/\/blog.networkpresence.co\/?p=1155\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[140,141,84,78],"class_list":["post-1155","post","type-post","status-publish","format-standard","hentry","category-network-presence","tag-csr","tag-key","tag-ssl","tag-sysadmin"],"_links":{"self":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/1155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1155"}],"version-history":[{"count":9,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/1155\/revisions"}],"predecessor-version":[{"id":8908,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/1155\/revisions\/8908"}],"wp:attachment":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1155"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}