jQuery in Action, 2nd edition
The moose likes Tomcat and the fly likes Creating Certificates Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Creating Certificates" Watch "Creating Certificates" New topic
Author

Creating Certificates

Kamal Patel
Greenhorn

Joined: Nov 05, 2003
Posts: 18
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 ]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 23395

Moving to Tomcat forum, as this is probably a configuration issue.


[Jess in Action][AskingGoodQuestions]
 
 
subject: Creating Certificates
 
Threads others viewed
Keytool woes
Sign a jar with a third party certificate, using keytool and jarsigner
Creating Certificates
SSL cert upgrade on GF 2.0
Failed to Establish Chain from Reply
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture