aspose file tools*
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
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: 525
    
    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: 525
    
    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: 525
    
    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: 525
    
    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..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to start Tomcat in SSL mode?