- Use the keytool command to create the key file:
- The following questions will be asked if not known:
- What is your first and last name? - This is the Common Name (Domain Name
- What is the name of your organizational unit?
- What is the name of your organization?
- What is the name of your City or Locality?
- What is the name of your State or Province?
- What is the two-letter country code for this unit?
- You will then be asked if the information is correct:
- When you answer 'y' or 'yes' the password is then requested:
- Use the keytool command to create the CSR file:
- You will be prompted to enter the password.
- You will need the text from this CSR when requesting a certificate
keytool -genkey -keyalg RSA -keystore domain.key
Enter keystore password: (NOTE:remember this for later use)
Is CN=www.yourdomain.com, OU=Your Organizational Unit, O=Your Organization, L=Your City, ST=Your State, C=Your Country correct?
Enter key password for
NOTE:Make a note of this password
Keytool -certreq -keyalg RSA -alias yyy (where yyy is the alias name you will need to remember) -file domain.csr -keystore domain.key
Enter keystore password:
If the password is correct then the CSR is created.
If the password is incorrect then a password error is displayed.



