SSL Certificate Implementation
SSL Certificate Implementation
Using keytool, follow these steps to generate a keystore and CSR on your server.
keytool -keysize 2048 -genkey -alias domain -keyalg RSA -keystore domain.keystore
First and Last Name — the fully-qualified domain name, or URL, you're securing.
Organizational Unit — Optional. If applicable, you can enter the DBA name in this
field.
Organization — the full legal name of your organization.
City/Locality — Name of the city in which your organization is registered/located —
do not abbreviate.
State/Province — Name of state or province where your organization is located —
do not abbreviate.
Country Code — the two-letter International Organization for Standardization (ISO)
format country code for where your organization is legally registered.
keytool -certreq -keyalg RSA -alias domain -file domain.csr -keystore domain.keystore
Place all the certificates received from CA and keystore used for generating CSR to the lib directory of
the tomcat and follow following steps:
Go to lib directory
Note:
Depending on the type of certificate that was purchased, there may be more than one Intermediate
certificate in the chain of trust. Please install all intermediates in numberical order until you get to
the domain/end entity certificate.
you should you should receive a message: Certificate reply was installed in keystore if successful. It
should NOT match the output of Step 1 or 2 above.
Note: If an alias was specified upon creation of the CSR then please use that alias instead of mykey.
Configure Tomcat (Webserver) for SSL
Write the connecter configuration in server.xml of tomcat present at %Tomcat Home%/conf