I'm trying to enable SSL on Tomcat on GCE.
- I installed Let's Encrypt certificate by following this:
https://certbot.eff.org/#ubuntutyakkety-apache
- Scanned the certificate here:
https://www.ssllabs.com/ssltest/analyze.html?d=mydomain.com
it checks out.
- Configured tomcat by following this:
https://community.letsencrypt.org/t/how-to-use-the-certificate-for-tomcat/3677
Connector in my server.xml looks like this:
<Connector port="443" protocol="org.apache.coyote.http11.Http11Protocol"
URIEncoding="UTF-8" maxThreads="150" SSLEnabled="true" scheme="https"
secure="true" clientAuth="false" sslProtocol="TLS"
keystoreFile="/home/me/certs/MyKeystore.jks"
keystorePass="password" keyAlias="tomcat" keyPass="password"/>
After restarting Tomcat, when I go to https
+ ://www.mydomain.com
the browser doesn't trust the cert, and it says
The requested URL was not found on this server.
What am I missing in my setup? Port 443 is enabled under firewall rules, and I have `Allow HTTPS traffic' checked. If I don't include this connector the URL can be accessed via HTTP.