Tomcat SSL Configuration
Posted
by
bdares
on Stack Overflow
See other posts from Stack Overflow
or by bdares
Published on 2011-10-26T04:32:00Z
Indexed on
2012/06/20
3:16 UTC
Read the original article
Hit count: 131
I received a SSL cert to use for a Tomcat 6.0 server, ready to use.
I configured Tomcat to use it with the following in server.xml:
<Connector
port="8443" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
keystoreFile="C:\Tomcat 6.0\ssl\cert" keystorePass="*****"
clientAuth="false" sslProtocol="TLS"/>
I started Tomcat using the command prompt so I could see any error message as they happened. There were none.
The results for accessing different URLS:
- http://localhost -> normal page loads fine
- https://localhost -> browser claims page cannot be found
- https://localhost:8443 -> page cannot be found
- http://localhost:8443 -> offers a certificate, after accepted redirects to https://localhost (I suspect the https:// urls initially offer the certificate which is automatically accepted by the browser, as it was issued by Verisign)
How to fix?
Edit: I've also tried port="443". Same result.
© Stack Overflow or respective owner