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=*,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
#Order SSL certificate with this CSR and copy the certificate .ZIP file as deliverd from COMODO into the current folder
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 .krd / (Kurdistan - Iraq) domains?

YES, the TLD has been added by GeoTrust / RapidSSL on our request for one of our customers. ;-)

Where can i get a Wildcard EV (Extended Validation) SSL certificate?

Unfortunately EV certificates cannot be Wildcard due to CA/B Forum policies, so the only option...

Multidomain SAN Upgrade: is it possible to purchase additional SAN slots later?

Yes, it is possible to increase the SAN slot count for an existing multi-domain SSL certificate....

How do i create a CSR (Certificate Sign Request) in Microsoft Exchange 2010? How do i install my SSL certificate in Exchange 2010 server?


PositiveSSL Multi-Domain - How to change approval email address per domain (multidomain)

For example, if "admin@" is selected as approver having main domain specified as "" and...