The following instructions will guide you through the CSR generation process on Jetty Java HTTP Servlet Web Server.
Generate a keystore and private key by running the following command:
keytool -genkey -alias [enter_alias_name] -keyalg RSA -keystore [enter_keystore_name] -keysize 2048
Enter a keystore password.
Note: Java servers will use a default password unless you decide to change it by specifying a customer password in the server.xml configuration file.
Enter the following CSR details when prompted:
Common Name (CN): The FQDN (fully-qualified domain name) you want to secure with the certificate such as www.sectigo.com, secure.website.org, *.domain.net, etc.
Organization Name (ON): The full legal name of your organization including the corporate identifier.
Organizational Unit (OU): Your department such as 'Information Technology' or ‘Website Security.’
Locality or City (L): The locality or city where your organization is legally incorporated. Do not abbreviate.
State or Province (S): The state or province where your organization is legally incorporated. Do not abbreviate.
Country Name (C): The official two-letter country code (i.e. US, CH) where your organization is legally incorporated.
Select Enter when prompted for the private key alias password.
Note: This will set the private key password to the same password used for the keystore from Step 2. Please save the private key and keystore password. If lost, they cannot be retrieved and you’ll have to start over.
Backup the keystore file, after creating the Keyentry, by accessing the following directory and saving the file somewhere safe in case of a system crash or failure.
C:\WINNT\Profiles\Administrator\.keystore
Or
C:\Documents and Settings\your name\.keystore
Generate a CSR off the Keyentry by running the following command:
keytool -certreq -alias [alias_name] -file certreq.csr -keystore [keystore_name]
Locate and open the newly created CSR in a text editor such as Notepad and copy all the text including:
-----BEGIN CERTIFICATE REQUEST-----
And
-----END CERTIFICATE REQUEST-----
Log into your Sectigo account
Click on the Provide CSR on our website and paste the entire CSR into the blank text box and continue with completing the generation process.