Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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

Creating Certificates

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am running a JSP page on a SSL enabled Tomcat server and getting the following error:
javax.net.ssl.SSLException: untrusted server cert chain
I assume I am getting this because I have not created a certificate under the JAVA_HOME/jre/lib/cacerts ?
I have therefore run the below keytool command to generate a certificate:
$JAVA_HOME/bin/keytool -genkey -alias cert -keyalg RSA
It created a certificate under $HOME - which is called .keystore, which I believe contains the certificate.
I am still getting the error message above! Do I have to edit the server.xml file to contain the path to the keystore file for the connector that I am using? If so, how would I do that? (Using the keystoreFile attribute? If so, could someone please tell me how to specify the path?)
Does anyone have any ideas about this one?
[ November 05, 2003: Message edited by: Kamal Patel ]
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to Tomcat forum, as this is probably a configuration issue.
 
reply
    Bookmark Topic Watch Topic
  • New Topic