Generate a Certificate Signing Request (CSR) for Tomcat with Keytool
Posted by Ashraf on October 24, 2010
To generate a Certificate Signing Request (CSR), perform the following steps:
Consider: Jdk1.6 and Windows Server with Tomcat 6.0
1. Create a certificate keystore and private key with the following command:
- i. C:\Program Files\Java\javaversionhere\bin>keytool -genkey -alias your_alaias_name -keyalg RSA -keystore your_keystore_filename
- ii. Specify the password – must be at least 6 characters long, and MUST be remembered.
2. You must input the following:
* What is your first and last name? *This is the Common Name Field – The Fully Qualified Domain Name MUST be entered here*
[Unknown]: http://www.yourdomain.com
* What is the name of your organizational unit?
[Global Sign]: IT
* What is the name of your organization?
[Global Sign]: MyOrganization
* What is the name of your City or Locality?
[London]:PARIS
* What is the name of your State or Province?
[London]: PARIS
* What is the two-letter country code for this unit?
[GB]: FR
* Is CN=www.yourdomain.com, OU=IT, O=MyOrganization, L=PARIS, ST=PARIS, C=FR correct?
[no]: yes
* Enter key password for
(RETURN if same as keystore password):
3. Create the Certificate Signing Request file with the following command:
- C:\Program Files\Java\javaversionhere\bin>keytool -certreq -keyalg RSA -alias your_alias_name -file certreq.csr -keystore your_keystore_filename
- Enter keystore password: your_password_here
- The certreq.txt file will now be generated – this file can be entered into the website. Insure to include:
* —–BEGIN NEW CERTIFICATE REQUEST—–
* —–END NEW CERTIFICATE REQUEST—–
This entry was posted on October 24, 2010 at 7:09 pm and is filed under System Administration, Windows Server. Tagged: Certificate authority, HTTP Secure, SSL, Tomcat, Windows. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.
3 Responses to “Generate a Certificate Signing Request (CSR) for Tomcat with Keytool”
Sorry, the comment form is closed at this time.
Scott said
thanks for this post…worked like a charm!
YOUR CSR DEVELOPMENT PARTNER said
YOUR CSR DEVELOPMENT PARTNER…
[…]Generate a Certificate Signing Request (CSR) for Tomcat with Keytool « Ashraf's Share Point[…]…
Rabatt 12 said
Pretty element of content. I simply stumbled upon your blog and
in accession capital to claim that I acquire in fact loved account your blog posts.
Anyway I’ll be subscribing in your augment and even I achievement you access constantly rapidly.