Hi RR Kumaran and others,
If the client is not a standalone
java client, but a
servlet running on Websphere 5, is it still the same that I just set the properties you mentioned below in my servlet calling the web services?
All any one knows the steps to set this(client only) up in websphere? Since the JVM is in the container though.
Thanks in advance!!!
Originally posted by RR Kumaran:
there is nothing like ready code.
1. Import the server certificats in ur client truststore,
2. run wsdl2java on https endpoint and generate the stubs
3. set below properties in ur client program
System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
Security.addProvider (new com.sun.net.ssl.internal.ssl.Provider());
System.setProperty("javax.net.ssl.trustStore", "<trust store location>");
System.setProperty("javax.net.ssl.trustStoreType", "jks | JCEKS");
System.setProperty("javax.net.ssl.trustStorePassword", "??");
System.setProperty("javax.net.ssl.keyStoreType", "jks");
System.setProperty("javax.net.ssl.keyStore", "<trust store location>");
System.setProperty("javax.net.ssl.keyStorePassword", "??");