SunCertPathBuilderException: unable to find valid certification path to requested target

Before reading this tutorial please go through the tutorial using SSL with jax-ws webservice Download the InstallCert.java from  http://blogs.sun.com/andreas/resource/InstallCert.java Install the InstallCert.java 1. Compile the class using “javac InstallCert.java” in command prompt 2. Execute the command “java InstallCert localhost:8443” in command prompt After installation, now you will get following output in Continue Reading…

Using SSL(Secure Socket Layer) in JAX-WS webservice

In this tutorial I will show how to use SSL/TSL or https in JAX-WS webservice. For using SSL with jax-ws webservice we need one keystore file. Please have a look at deploy jax-ws webservice before reading this tutorial. First generate the keystore file using the below command from the command Continue Reading…

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