• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat and https on Windows 7

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
check for org.apache.catalina.core.AprLifecycleListener in the server.xml and comment that line.
reply
    Bookmark Topic Watch Topic
  • New Topic