Task : java client calling a servlet using https protocol
This is the sample java code we are using :
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
sUrl = "https://111.111.111.111:1111/TestServlet";
URL u = new URL(sUrl);
InputStream in = (InputStream)u.openStream();
And it is compiled successfully. While executing we are getting the following error
Exception : javax.net.ssl.SSLException: untrusted server cert chain
We come to know that we need to use 'keytool' and we don't know how to proceed with this ? Can anyone help us in this regard.
And for your information. The above code is a simple java program.
Regards
Nathan
:roll:
[ April 17, 2002: Message edited by: Nathan KV ]