Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Tomcat and https on Windows 7

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

How to configure basic https access on Tomcat?

Downloaded and installed apache-tomcat-6.0.29-windows-x86.zip
and i'm about to configure basic https://localhost:8443 access via browser;
1)
get the .keystore file with changeit password via jdk's
keytool... command from command line
2)
Uncommented the https 8443 config in server.xml and added properties keystoreFile="e:\.keystore" keystorePass="changeit"




When tried to run startup.bat i get exception:


Did this configuration without any trouble a while ago on earlier versions of Tomcat. Has anything changed in newer versions?


Regards
 
Imre Tokai
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am i using wrong certificate? Any (other) hints?
Anyone on this topic, please?


Regards
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Imre Tokai wrote:




When tried to run startup.bat i get exception:




Try changing the protocol attribute value to "org.apache.coyote.http11.Http11NioProtocol".




For more details, refer to http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html#Configuration
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could try to generate your own certificate - and then see if this one will work.

It is working on my Tomcat 7 server, with my own home generated certificate



Replace the <..> with your own values...
 
Imre Tokai
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Working indeed thanks a lot Rene!

Which (not self-signed) certificate is recommended for this usage of Tomcat? Any experience with commercial certificates?


Regards
 
Rene Larsen
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should be able to buy a SSL Certificate from http://www.verisign.com/
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check for org.apache.catalina.core.AprLifecycleListener in the server.xml and comment that line.
 
Think of how stupid the average person is. And how half of them are stupider than that. But who reads this tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic