Your JDK installation includes a command-line tool called keytool. You can manage server certificates and certifying authorities with this tool. The easiest way of downloading server certificates is to export them from your Web server.
To create a truststore for your JDK:
keytool -import -alias <alias name> -file c:\<pathname>\<certificate file name> -keystore mykeystoreThe command-line tool creates a file called mykeystore in your current working directory.