Thanks for the link.
I did following through the guide I’m getting the error:
“This site can’t be reached
ERR_TIMED_OUT”
I did change the Connector Port to 8443 from 443 as it was shown in the guide. Anyway, I have also tried port 443 and that didn’t work either.
I have checked my firewall settings and it allows both 8443 and 443.
Note that my Self-Signed certificate works on port 8443, so firewall isn’t the issue. But when I change the server.xml to point to the Let’s Encrypt certificate using the config example given here, I’m getting the ERR_TIMED_OUT error.
This is my server.xml looks like:
<?xml version='1.0' encoding='utf-8'?>
<!--
-->
<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.startup.VersionLoggerListener" />
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
URIEncoding="UTF-8"
redirectPort="8443" />
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true" >
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
<SSLHostConfig>
<Certificate certificateKeyFile="/etc/letsencrypt/live/I-Placed-My-Domain-Here/privkey.pem"
certificateFile="/etc/letsencrypt/live/I-Placed-My-Domain-Here/cert.pem"
certificateChainFile="/etc/letsencrypt/live/I-Placed-My-Domain-Here/chain.pem"
type="RSA" />
</SSLHostConfig>
</Connector>
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
</Realm>
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
</Engine>
</Service>
</Server>
Please note that I know my Let’s Encrypt Certificate works and the path is correct because on Apache2 I get valid certificate when I point the browser to https://MyDomain.com
Thanks in advance for any suggestion.