JAX-WS 2-Way SSL WebLogic is not honoring the sslSocketFactory placed in the request context. (Doc ID 1280237.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle WebLogic Server - Version 10.3.2 and later
Information in this document applies to any platform.
***Checked for relevance on 04-06-2014***

Symptoms

In Weblogic Server, when using below property to load certificates following exceptions are seen-

Properties loaded

com.sun.xml.ws.transport.https.client.SSLSocketFactory com.sun.xml.internal.ws.developer.JAXWSProperties.SSL_SOCKET_FACTORY


Exceptions noticed


javax.xml.ws.WebServiceException: javax.net.ssl.SSLKeyException: [Security:090477]Certificate chain received from some.com - 192.85.36.39 was not trusted causing SSL handshake failure.

 


Sample code
========
import weblogic.wsee.jaxws.sslclient.PersistentSSLInfo;
import weblogic.wsee.jaxws.sslclient.SSLClientUtil;
import com.sun.xml.internal.ws.developer.JAXWSProperties;

SecureHelloWorld port= service.getSecureHelloWorldPort();
((BindingProvider) port).getRequestContext().put(JAXWSProperties.SSL_SOCKET_FACTORY,SSLClientUtil.getSSLSocketFactory(sslInfo));

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms