How to disable hostname verification in java ?

Solution Unverified - Updated -

Issue

  • Is there any way to disable hostname verification in Java ?

  • We are observing javax.net.ssl.SSLException: hostname in certificate didn't match error in logs. Is there any way to overcome this error ?

Environment

  • Java

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In