Linux
1. Generate crt file from InstallCert.java (output file is cert )
2. keytool -importcert -file cert -alias localhostdas -keystore $JAVA_HOME/jre/lib/security/cacerts
3. Enter keystore password: changeit
for Windows
1. Go to URL in your firefox browser, click on HTTPS certificate chain (next to URL address). Click "more info" > "security" > "show certificate" > "details" > "export..". Pickup the name and choose file type example.cer. Now you have file with keystore and you have to add it to your JVM
2. Determine location of cacerts files, eg. C:\Program Files (x86)\Java\jre1.6.0_22\lib\security\cacerts.
3. Next import the example.cer file into cacerts in command line:
keytool -import -alias example -keystore C:\Program Files (x86)\Java\jre1.6.0_22\lib\security\cacerts -file example.cer
You will be asked for password which default is changeit
4. Restart your JVM/PC.