Connection to https site (server)
1 answer
Yes. URLConnection should work. For example,
URL a = new URL("https://login.yahoo.com");
conn = a.openConnection();
InputStream is = conn.getInputStream();
The JRE comes with a default trust store with most CA certificates. As long as the certificate is signed by one of them, you don't need to do anything.
+5
source to share