Activating ssl on tomcat
Posted
by
toom
on Server Fault
See other posts from Server Fault
or by toom
Published on 2012-11-03T15:28:18Z
Indexed on
2012/11/03
17:05 UTC
Read the original article
Hit count: 178
I want to encrypt the http traffic on a tomcat instance via ssl. Therefore I followed the most simplistic approach described on various webpages. But anyway it simply does not work. Here is what I did:
- "keytool -genkey -alias tomcat -keyalg RSA" and I enterd "changeit" as the password (since this is the defaut chosen by tomcat)
Altering $CATALINA_HOME/conf/servers.xml by uncommenting the following line
Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS"/
Restarting tomcat
Entering
https://localhost:8443
does not work. However, I can still access the page via normal http like
http://localhost:8080
The logfile does not contain any suspicious information.
What is going wrong here?
© Server Fault or respective owner