This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Pipeline as Code and have Mohamed Labouardy on-line!
See this thread for details.
Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Unable to start Tomcat in SSL mode?

 
Ranch Hand
Posts: 558
2
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Kumar Raja
Ranch Hand
Posts: 558
2
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any help ?
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:
 
Kumar Raja
Ranch Hand
Posts: 558
2
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 558
2
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..
 
Cob is sand, clay and sometimes straw. This tiny ad is made of cob:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic