It's not a secret anymore!*
The moose likes Tomcat and the fly likes Tomcat and https on Windows 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat and https on Windows 7 " Watch "Tomcat and https on Windows 7 " New topic
Author

Tomcat and https on Windows 7

Imre Tokai
Ranch Hand

Joined: Jun 04, 2008
Posts: 130
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

Joined: Jun 04, 2008
Posts: 130
Am i using wrong certificate? Any (other) hints?
Anyone on this topic, please?


Regards
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9956
    
163

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


[My Blog] [JavaRanch Journal]
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

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...


Regards, Rene Larsen
Dropbox Invite
Imre Tokai
Ranch Hand

Joined: Jun 04, 2008
Posts: 130
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

Joined: Oct 12, 2001
Posts: 1179

You should be able to buy a SSL Certificate from http://www.verisign.com/
sinoob ts
Greenhorn

Joined: Oct 19, 2011
Posts: 1
check for org.apache.catalina.core.AprLifecycleListener in the server.xml and comment that line.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat and https on Windows 7
 
Similar Threads
Password verification failed isue
unable to use ssl in tomcat
[Update - Success] Adding SSL certificate to Server.xml
Unable to start Tomcat in SSL mode?
I want to use https:// over LocalHost tomcat (vista) but failed, I used