How to check SSL certificate valid or not Using java code:
try{
URL url = new URL("https://www.google.com");
URLConnection mycon = url.openConnection();
//causes the VM to display a dialog when connecting to untrusted servers
mycon.setAllowUserInteraction(true);
mycon.getInputStream();
}catch(Exception e){e.printStackTrace();}
No comments:
Post a Comment