Tomcat GlassFish SSL CSR creation & installation example

cd /opt/glassfish4/glassfish/domains/domain1/config
keytool -list -v -alias s1as -keystore keystore.jks
cp keystore.jks keystore.jks_backup
keytool -delete -alias s1as -keystore keystore.jks
keytool -keysize 4096 -genkey -alias s1as -keyalg RSA -dname "CN=*.yourdomain.com,O=Company,L=Wattil,S=SG,C=CH" -keypass changeit -storepass changeit -keystore keystore.jks
keytool -list -v -alias s1as -keystore keystore.jks
keytool -certreq -alias s1as -keystore keystore.jks -storepass changeit -keypass changeit -file yourdomain.com.csr
cat yourdomain.com.csr
#Order SSL certificate with this CSR and copy the certificate .ZIP file as deliverd from COMODO into the current folder
unzip 1459xxx.zip
keytool -import -alias COMODORSADomainValidationSecureServerCA -keystore keystore.jks -trustcacerts -file COMODORSADomainValidationSecureServerCA.crt
keytool -import -alias COMODORSAAddTrustCA -keystore keystore.jks -trustcacerts -file COMODORSAAddTrustCA.crt
keytool -import -alias AddTrustExternalCARoot -keystore keystore.jks -trustcacerts -file AddTrustExternalCARoot.crt
keytool -import -alias s1as -keystore keystore.jks -trustcacerts -file STAR_yourdomain_com.crt
keytool -list -v -alias s1as -keystore keystore.jks

Was this answer helpful?

 Print this Article

Also Read

Can you issue SSL certificates for .cu (Cuba) and .ir (Iran) domains?

COMODO: no, unfortunately not possible. GEOTRUST: no, unfortunately not possible.  

How to securely submit sensitive documents (forms, personal ID, company registration docs) to COMODO? (OV and EV certificates, CPAC Pro, CPAC Enterprise)

In case you are requested to submit sensitive documents (forms, personal id, company documents)...

SSL Order API

InterSSL offers API access on request, which allows you to perform order automation and SSL...

Tomcat CSR generation and CRT import (Java Keystore .JKS)

keytool -genkey -alias server -keyalg RSA -keysize 2048 -keystore www.domain.com.jks keytool...

Enabling Webserver (WebStation) for HTTP validation under Synology DiskStation Manager

In Synology Diskstation you first have to enable the "WebStation" service. "WebStation" is the...