This is an old revision of the document!


How to add an SSL certificate to the server

In case a certificate changes, a server moves, …

First : download the certificate, I recommend using firefox to navigate to the url, clicking the security icon, view certificate → details → export.

Use the keytool tool in the JDK

on most of our servers :

/usr/lib/jvm/jdk1.7.0/jre/bin/keytool -importcert -file ~/\*.innosystems.net -keystore /usr/lib/jvm/jdk1.7.0/jre/lib/security/cacerts

on java6sun :

/etc/java-6-sun/security/cacerts

password = changeit

Mac : Tomcat in netbeans

First check which java installation you are using :

Netbeans : - Go to “services” In the tree open Servers. - Rightclick Tomcat select “properties”. - click manage platforms & copy the path to the java installation

example : /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home

adjust the keytool code above to use the path you've found.

No permission

Use sudo !

certificate already exists with that key

add –alias RANDOMNAME

Last STEP : Tomcat restart