java - Not able to access webservice using https protocol (ssl) -


we had webservice exposed on https.

when try connect on https using jax-ws client, throws following exception com.sun.xml.ws.client.clienttransportexception: http transport error: java.net.connectexception: connection refused: connect means there problem on socket connection. throws exception when try call operation of webservice using webservice client. http call webservice working fine.

the funny thing here problem happens when have deployed webservice , had made our first call access operations using https protocol. make http call, surprisingly after https starts working.

please give advice if 1 has faced kind of issue before.

in general java client should have ssl certificate in trusted key store.

use keytool certificate management: keytool -import -trustcacerts -keystore trastedcert -storepass traustedcertpassword -noprompt -alias trastedcert -file trastedcert.cer

your can add trusted cert jvm(cacerts):

keytool -import -trustcacerts -keystore cacerts -storepass traustedcertpassword -noprompt -alias trastedcert -file trastedcert.cer

or

for jboss app server i'm using next java_opts params:

set java_opts=%java_opts% -djavax.net.ssl.truststore=%path_to_cert%\traustedcert -djavax.net.ssl.truststorepassword=traustedcertpassword


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -