Enter keystore password:
What is your first and last name?
What is the name of your organizational unit? **This is your Common Name**
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?
The 'first and last name' actually means the fully-qualified domain name for your site - e.g. 'www.mydomain.com'.
For wildcard certificates, the Common Name should be in the format: *.mydomain.com
Please take care to remember the password you enter.
Now generate the CSR using the key and keystore you have just created:
keytool -certreq -alias server -file csr.txt -keystore my_keystore.jks
Ensure that the alias and keystore have the same name and filename as in Step 1.
If you do not enter an alias with the '-alias' command flag, the default alias will be used, 'mykey'.