How to disable SSL certificate hostname verification in JBoss EAP?

Solution Verified - Updated -

Issue

  • JVM running JBoss EAP server fails to complete an SSL handshake with a remote server that presents a certificate that does not match the hostname of that server.
  • Seeing exception similar to javax.net.ssl.SSLException: hostname in certificate didn't match: <test.com> != <example1.com> OR <example2.com>

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6
    • 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content