Hi all,
I am trying to call a webservices, which is hosted on a remote server and is exposed through an https endpoint.
My client is an application hosted on my local
tomcat, and in my tomcat's setenv.bat, I have set the following properties:
echo setting
JAVA OPTS for certificates
set "JAVA_OPTS= -Dhttps.proxyHost=10.64.X.XXX -Dhttps.proxyPort=8080 -Djavax.net.ssl.trustStore=%CATALINA_HOME%/certificateStore/XXXProdTrustStore.jks -Djavax.net.ssl.trustStorePassword=XXX -Djavax.net.ssl.trustStoreType=JKS -Djavax.net.ssl.keyStore=%CATALINA_HOME%/certificateStore/XXXProdKeyStore.pfx -Djavax.net.ssl.keyStorePassword=XXX -Djavax.net.ssl.keyStoreType=pkcs12 -Djava.security.debug=all -Dorg.apache.ws.security.crypto.merlin.file=%CATALINA_HOME%/certificateStore/XXXProdKeyStore.jks %JAVA_OPTS%"
NOTE: I have generated the XXXProdTrustStore.jks, XXXProdKeyStore.pfx and XXXProdKeyStore.jks through supplier's provided certificate. From supplier, i mean the company hosting the webservice.
On my calling the service, I get the following error:
Could someone give me some pointers as to where the problem lies?
Another important observation is that if is implement a standalone client (standard java) and execute it "not" as a JEE/Tomcat component then the I get no issues. There I set everything as system properties, part of java code and not as batch file JAVA OPTS properties.
It's only when i run the application in Tomcat, I get the above error message.
Any help shall be appreciated.
Thanks.