Bent Andre Solheim Blog

Thursday, November 23, 2006

Note to self: How to import a certificate in Java

Every time I need to import a certificate in Java to get access to some https resource I have to google for the command. Now I don't have to do that any more:

%JAVA_HOME%\bin\keytool -keystore %JAVA_HOME%/jre/lib/security/cacerts -import -file c:/server.cert

Enter keystore password: changeit

0 Comments:

Post a Comment

<< Home