JBoss Community

JBoss5.1 and HTTPS webservice client

created by dario novakovic in JBoss Web Services - View the full discussion

Hello,

 

I created WS client which is OK for HTTP but in production it needs to run through HTTPS.

 

Setting system propoerties (-Djavax.net.ssl.trust...) is not an option!

 

I created custom socket factory which reads my truststore and it works as standalone app. I configure custom socketFactory like this:

 

((BindingProvider)port).getRequestContext().put("com.sun.xml.internal.ws.transport.https.client.SSLSocketFactory", new MySocketFactory());

 

 

However, when i deploy to JBoss5.1 i get SSLHandshakeException which means that MySocketFactory and my truststore are not used.

 

I also tried

put("org.jboss.ws.socketFactory", PaymentsSocketFactory.class.getName());

(from https://community.jboss.org/thread/164188)

but it doesn't help.

 

 

I use

Version: jbossws-native-3.1.2.GA

Build: 200905081542

 

 

Is there any way I can setup WS client in JBoss to use my own truststore when setting up HTTPS for WS call?

 

Thank you!

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community