This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Unable to start Tomcat in SSL mode? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Unable to start Tomcat in SSL mode?" Watch "Unable to start Tomcat in SSL mode?" New topic
Author

Unable to start Tomcat in SSL mode?

Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 518
    
    2

Hello All,

I'm trying to setup SSL mode in Tomcat and followed the documentation given in Apache site. But unforutunately I could not start it in https. Could you please advice what I'm missing here.

server.xml



I also have my keystore created using keytool and provided the path in server.xml

After the restart of the server, when I try to access https://localhost:8443 I get page can not be displayed.

When I look into the logs


I see that the protocol specified in server.xml is used but, not sure why it is not starting in https mode.

Any advice.


Regards
KumarRaja

Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 518
    
    2

Any help ?
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

The server didn't start up with SSL - are you sure that you did save your server.xml, and it was in the right one you did the changes ??

You should get this output in the server log - where you can see that both 8080 and 8443 is started:


Regards, Rene Larsen
Dropbox Invite
Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 518
    
    2

Ok,

I thought I saved the changes I made to server.xml, but in fact not. Now I saved my changes, copied JSSE libraries (jcert.jar,jnet.jar,jsse.jar) to TOMCAT_HOME/lib location and have my Keystore copied to $USER.HOME as mentioned in server.xml. But after I restarted the Tomcat, I'm getting below exception



What could I be missing here?

My server.xml is as follows
Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 518
    
    2

I think I got this straightened. My keystore and private key passwords were not matching and Tomcat documentation has a clear explanation on this, which I have not looked into earlier.

Now I'm able to run my tomcat in https..
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to start Tomcat in SSL mode?
 
Similar Threads
SSL on Tomcat -- No, not your typical question!
Struts Application (WAR) file deploy
Unable to login to manager GUI
Redirecting to HTTPS
problem in starting tomcat with eclipse