java.security.cert.CertificateException: No name matching localhost found

To fix it, add a javax.net.ssl.HostnameVerifier() method to override the existing hostname verifier like this : Before having a look at this issue resolver, go through the tutorial using SSL with jax-ws webservice java.security.cert.CertificateException: No name matching localhost found was last modified: January 26th, 2015 by Soumitra