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

Output

 

It’s working fine now.

Soumitra

Software Professional, I am passionate to work on web/enterprise application. For more information please go to about me. You can follow on Twitter. You can be a friend on Facebook or Google Plus or Linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.