{"id":453,"date":"2016-01-19T15:52:49","date_gmt":"2016-01-19T15:52:49","guid":{"rendered":"http:\/\/www.pkipartner.support\/?page_id=453"},"modified":"2016-02-22T14:09:09","modified_gmt":"2016-02-22T14:09:09","slug":"csr-java-based-web-servers","status":"publish","type":"page","link":"https:\/\/pkipartner.com\/support\/csr-java-based-web-servers\/","title":{"rendered":"CSR &#8211; Java Based Web Servers"},"content":{"rendered":"<h1><strong>Generating a Certificate Signing Request (CSR) using Java Based Web Servers<\/strong><\/h1>\n<p>Use the keytool command to create the key file:<br \/>\n<strong>keytool -genkey -keyalg RSA -keystore domain.key -validity 360<\/strong><\/p>\n<p>If you want to use an alias for the site certificate include -alias yyy (where yyy is the alias name)<\/p>\n<p>(NOTE validity may vary)<\/p>\n<p>The following questions will be asked if not known:<br \/>\n<em>Enter keystore password: (NOTE remember this for later use)<\/em><em><br \/>\n<\/em><em>What is your first and last name? &#8211; This is the Common Name (Domain Name)<\/em><em><br \/>\n<\/em><em>What is the name of your organizational unit?<\/em><em><br \/>\n<\/em><em>What is the name of your organization?<\/em><em><br \/>\n<\/em><em>What is the name of your City or Locality?<\/em><em><br \/>\n<\/em><em>What is the name of your State or Province \/ L\u00e4n?<\/em><em><br \/>\n<\/em><em>What is the two-letter country code for this unit?<\/em><\/p>\n<p>You will then be asked if the information is correct:<br \/>\n<em>Is CN=www.yourdomain.com, OU=Your Oganizational Unit, O=Your Organization, L=Your City, ST=Your State, C=Your Country correct?<\/em><\/p>\n<p>When you answer &#8216;y&#8217; or &#8216;yes&#8217; the password is then requested:<br \/>\n<em>Enter key password for &lt;mykey&gt;<\/em><br \/>\nNOTE: Make a note of this password<br \/>\n&lt;mykey&gt; is the default alias for the certificate<\/p>\n<p>Use the keytool command to create the CSR file:<br \/>\n<strong>keytool -certreq -keyalg RSA -file domain.csr -keystore domain.key<\/strong><\/p>\n<p>You will be prompted to enter the password.<br \/>\n<em>Enter keystore password:<\/em><\/p>\n<p>If the password is correct then the CSR is created.<br \/>\nIf the password is incorrect then a password error is displayed.<br \/>\nYou will need the text from this CSR when requesting a certificate<\/p>\n<p>&nbsp;<\/p>\n<p><strong><em>\u00a0<\/em><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Generating a Certificate Signing Request (CSR) using Java Based Web Servers Use the keytool command to create the key file: keytool -genkey -keyalg RSA -keystore domain.key -validity 360 If you want to use an alias for the site certificate include -alias yyy (where yyy is the alias name) (NOTE validity\u2026<\/p>\n<p> <a class=\"continue-reading-link\" href=\"https:\/\/pkipartner.com\/support\/csr-java-based-web-servers\/\"><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\/453"}],"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=453"}],"version-history":[{"count":2,"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/pages\/453\/revisions"}],"predecessor-version":[{"id":676,"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/pages\/453\/revisions\/676"}],"wp:attachment":[{"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/media?parent=453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}