In Java, you have several options:
- Specify parameters
java.net.ssl*for configuring certificate storage, password, etc. You want to use keytoolto configure these objects.
Here is the code, or they can be specified on the command line with -D. Please note: they will be global for your application.
System.setProperty("javax.net.ssl.keyStore", "myKeyStore.p12");
System.setProperty("javax.net.ssl.keyStoreType", "pkcs12");
System.setProperty("javax.net.ssl.keyStorePassword", "password");
SSLFactory, WS. google . ( JAX-RPC, impl JAX-WS).
JSSE docs ( java 1.5).