Getting SSL Hostname Verification Errors In A Webservice Call (Doc ID 1923947.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle WebLogic Server - Version 12.1.2.0.0 to 12.1.2.0.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

We have a J2EE application that makes web services calls using JAX-WS toanother J2EE application.
when using SSL for security. We have found that these calls fail with an exception such as this:

javax.xml.ws.WebServiceException: javax.net.ssl.SSLKeyException:
[Security:090504]Certificate chain received from POLINENI-PC.us.oracle.com -10.149.159.116 failed hostname verification check. Certificate contained POLINENI-PC.us.oracle.com but check expected POLINENI-PC.us.oracle.com


As can be seen from the exception the hostnames match but hostname verification is still failing.

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