Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1818

HttpGet with HTTPS : SSLPeerUnverifiedException

$
0
0

Using HttpClient, I receive the following error when attempting to communicate over HTTPS:

Exception in thread "main" javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated.

Here is my code:

URI loginUri = new URI("https://myUrl.asp");HttpClient httpclient = new DefaultHttpClient();HttpGet httpget = new HttpGet( loginUri );HttpResponse response = httpclient.execute( httpget );

How do I suppress or remove this error?


Viewing all articles
Browse latest Browse all 1818

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>