Skip to content

Instantly share code, notes, and snippets.

@aldaris
Created December 1, 2010 19:13
Show Gist options
  • Save aldaris/724035 to your computer and use it in GitHub Desktop.
Save aldaris/724035 to your computer and use it in GitHub Desktop.
import java.net.*;
/**
* Usage: java -Djavax.net.ssl.trustStore=/path/to/cacerts -Djavax.net.ssl.trustStorePassword=changeit HttpsCertChecker
*/
public class HttpsCertChecker {
public static void main(String[] args) throws Exception {
URL url = new URL("https://stewie.sch.bme.hu");
url.openConnection().getInputStream();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment