Hi All
I have a problem connecting to an Https server from a servlet
The code that I use is as follows
URL url=new URL("https://.......");
HttpsURLConnection connection=(HttpsURLConnection)url.openConnection();
InputStream is=connection.getInputStream();
The Problem is that when I try to get the input stream I get an exception that the certificate chain of the server is not valid
now I know that in the browser I just have to click ok on the pop up window that appears when the certificate is not valid but how can I simulate the same behavior programaticaly?
