{"id":435,"date":"2016-01-19T15:49:24","date_gmt":"2016-01-19T15:49:24","guid":{"rendered":"http:\/\/www.pkipartner.support\/?page_id=435"},"modified":"2016-02-22T14:05:51","modified_gmt":"2016-02-22T14:05:51","slug":"csr-generating-a-certificate-signing-request-csr-using-openssl-apache-mod_ssl-nginx","status":"publish","type":"page","link":"https:\/\/pkipartner.com\/support\/csr-generating-a-certificate-signing-request-csr-using-openssl-apache-mod_ssl-nginx\/","title":{"rendered":"CSR &#8211; Generating a CSR using OpenSSL (Apache &#038; mod_ssl, NGINX)"},"content":{"rendered":"<h1>Generating a Certificate Signing Request (CSR) using OpenSSL<\/h1>\n<p>A CSR is a file containing your certificate application information, including your Public Key. Generate your CSR and then copy and paste the CSR file into the webform in the enrollment process:<\/p>\n<h2>Generate keys and certificate:<\/h2>\n<p>To generate a pair of private and public keys and to create a Certificate Signing Request (CSR) for a webserver, &#8220;server&#8221;, use the following commands:<\/p>\n<p>openssl req -new -nodes -keyout myserver.key -out server.csr<\/p>\n<p>This creates two files. The file myserver.key contains a private key; do not disclose this file to anyone. Carefully protect the private key.<\/p>\n<p>In particular, be sure to backup the private key, as there is no means to recover it should it be lost. The private key is used as input in the command to generate a Certificate Signing Request (CSR).<\/p>\n<p>You will now be asked to enter details to be entered into your CSR. What you are about to enter is what is called a Distinguished Name or a DN.<\/p>\n<p>For some fields there will be a default value, If you enter &#8216;.&#8217;, the field will be left blank.<\/p>\n<p>&#8212;&#8211;<br \/>\nCountry Name (2 letter code) [AU]: <strong>GB<\/strong><br \/>\nState or Province Name (full name) [Some-State]: <strong>Yorks<\/strong><br \/>\nLocality Name (eg, city) []: <strong>York<\/strong><br \/>\nOrganization Name (eg, company) [Internet Widgits Pty Ltd]: <strong>MyCompany Ltd<\/strong><br \/>\nOrganizational Unit Name (eg, section) []: <strong>IT<\/strong><br \/>\nCommon Name (eg, YOUR name) []: <strong>mysubdomain.mydomain.com<\/strong><br \/>\nEmail Address []:<\/p>\n<p>Please enter the following &#8216;extra&#8217; attributes to be sent with your certificate request<\/p>\n<p>A challenge password []:<br \/>\nAn optional company name []:<br \/>\n&#8212;&#8211;<\/p>\n<p>Use the name of the webserver as Common Name (CN). If the domain name is mydomain.com append the domain to the hostname (use the fully qualified domain name).<\/p>\n<p>The fields <strong>email address<\/strong>, <strong>optional company name<\/strong> and <strong>challenge password<\/strong> can be left blank for a webserver certificate.<\/p>\n<p>Your CSR will now have been created. Open the server.csr in a text editor and copy and paste the contents into the online enrollment form when requested.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Generating a Certificate Signing Request (CSR) using OpenSSL A CSR is a file containing your certificate application information, including your Public Key. Generate your CSR and then copy and paste the CSR file into the webform in the enrollment process: Generate keys and certificate: To generate a pair of private\u2026<\/p>\n<p> <a class=\"continue-reading-link\" href=\"https:\/\/pkipartner.com\/support\/csr-generating-a-certificate-signing-request-csr-using-openssl-apache-mod_ssl-nginx\/\"><span>Continue reading<\/span><i class=\"crycon-right-dir\"><\/i><\/a> <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/pages\/435"}],"collection":[{"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/comments?post=435"}],"version-history":[{"count":2,"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/pages\/435\/revisions"}],"predecessor-version":[{"id":673,"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/pages\/435\/revisions\/673"}],"wp:attachment":[{"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/media?parent=435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}