• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

javax.net.ssl.SSLException: untrusted server cert chain

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone.
I have recently started working on SSL.All I did was configured my Tomcat4.0 to handle SSL by generating a certificate according to its specification.
But when I try to access "Https" through an application whose source code, I have given below I get "javax.net.ssl.SSLException: untrusted server cert chain"
Exception.Can any one please help me find a solution to this problem.
The code is
public class URLReader
{
public static void main(String[] args) throws Exception
{
String inputLine;
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
URL verisign = new URL("https://localhost:8443/");
BufferedReader in = new BufferedReader(new InputStreamReader(verisign.openStream()));
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
}
}
And also can any one help me to set up the Server ID that verisign gives free on trial basis on Tomcat4.0.
Expecting replies.
Bye
Sunil
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic