REM import phony certificate into a client cacerts J: CD \dirwherecertis rem when keytool asks if you trust this certificate, type yes. rem J: needs to be an actual drive, not a mapped drive. rem import into JDK REM Prior to Java 1.6 use -import instead of -importcert keytool -importcertcert -keystore "%JRE64\lib\security\cacerts" -storepass changeit -alias mindprodcert2010dsa -file mindprodcert2010dsa.cer rem import into JRE keytool -importcertcert -keystore "%JRE64\lib\security\cacerts" -storepass changeit -alias mindprodcert2010dsa -file mindprodcert2010dsa.cer rem -30-