...
Use the following command to create the CSR:
Code Block keytool -certreq -alias selfsigned -keystore keystore.jks -file cer- treqcertreq.csr
You will be prompted to enter the keystore password. A certreq.csr CSR file is created for the key with the alias
selfsigned
.The CA will return a Root or Chain certificate and the newly signed certificate, both of which must be imported into your keystone. Use the following command to import your root certificate:
Code Block keytool -import -alias root -keystore keystore.jks -trustcacerts - file <filename_of_the_chain_certificate>
Use the following command to import the new certificate:
Code Block keytool -import -alias dtp -keystore keystore.jks -file <your_certificate_filename>
...
Copy the keystore.jks file described in Keystore Generation and Certificates to the tomcat/conf
directory and rename the file to .keystore. $PASSWORD
is the user password specified when the keystore was created. $ALIAS
is the alias assigned to the desired certificate in the keystore.
...