javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching yourdomain.com found
try the following code
HttpsURLConnection  con = null;
con = (HttpsURLConnection) server.openConnection();        
         con.setHostnameVerifier(new HostnameVerifier()
         {   
         public boolean verify(String hostname, SSLSession session) {            
             return true;
         }
         });
for more details try the following link
http://jijo84.blogspot.com/2009/02/http-and-https-tunneling-using-java.html
http://jijo84.blogspot.com/2009/02/http-and-https-tunneling-using-java.html
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment