title: Tomcat Not Listening On Port 8443
body: <p>I've just set up Tomcat on a fresh Debian VM. Port 8080 over HTTP works with no issue, yet after hours of fiddling around I cannot find a way of enabling HTTPS.</p>
  <p>I've followed the guide to generate a self-signed certificate here: <a href="https://stackoverflow.com/questions/42541356/how-to-create-a-self-signed-ssl-certificate-for-use-with-tomcat">How to create a self signed SSL certificate for use with Tomcat?</a></p>
  <p>I've set my server.xml file up as follows:</p>
  <pre><code>&lt;Connector port=&quot;8080&quot; protocol=&quot;HTTP/1.1&quot;
             connectionTimeout=&quot;20000&quot;
             redirectPort=&quot;8443&quot; /&gt;
  &lt;Connector port=&quot;8443&quot; protocol=&quot;HTTP/1.1&quot; SSLEnabled=&quot;true&quot;
             maxthreads=&quot;150&quot; scheme=&quot;https&quot; secure=&quot;true&quot;
             keystoreFile=&quot;selfsigned.jks&quot; keystorePass=&quot;123456&quot;
             clientAuth=&quot;false&quot; acceptCount=&quot;100&quot;/&gt;
  </code></pre>
  <p>I've restarted Tomcat, and yet still the thing isn't listening on port 8443.</p>
  <p>Running <em>netstat -tulpn | grep LISTEN</em> shows:</p>
  <pre><code>tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      542/sshd
  tcp6       0      0 127.0.0.1:8005          :::*                    LISTEN      7953/java
  tcp6       0      0 :::8080                 :::*                    LISTEN      7953/java
  tcp6       0      0 :::22                   :::*                    LISTEN      542/sshd
  </code></pre>
  <p>Even if the certificate was wrong, surely it would be listening on port 8443, no?</p>
  <p>I've also tried copying the server.xml from this question:
  <a href="https://stackoverflow.com/questions/17452505/tomcat-trouble-with-ssl-https-connection-on-port-8443">Tomcat: Trouble with SSL https connection on port 8443</a></p>
  <p>Yet again, port 8443 isn't listening.
  What am I doing wrong?</p>
  <p><strong>EDIT</strong>
  I see the following error within the catalina log file:</p>
  <p><em>Caused by: java.io.IOException: keystore password was incorrect</em></p>
  <p>I've removed and recreated the Keystore file with the same password, so I can't see why this isn't working.</p>
  <p>My Server.xml file now looks like this:</p>
  <pre><code>&lt;Connector port=&quot;8443&quot; protocol=&quot;org.apache.coyote.http11.Http11NioProtocol&quot;
             maxThreads=&quot;150&quot; SSLEnabled=&quot;true&quot; scheme=&quot;https&quot; secure=&quot;true&quot;
             defaultSSLHotConfigName=&quot;qa-maintenance.company.com&quot;&gt;
      &lt;UpgradeProtocol className=&quot;org.apache.coyote.http2.Http2Protocol&quot; /&gt;
      &lt;SSLHostConfig hostname=&quot;qa-maintenance.company.com&quot; protocols=&quot;TLSv1.2,+TLSv1.1,+TLSv1&quot;&gt;
          &lt;Certificate certificateKeystoreFile=&quot;conf/keystore.jks&quot;
                       type=&quot;RSA&quot; KeystorePass=&quot;123456&quot; /&gt;
      &lt;/SSLHostConfig&gt;
  &lt;/Connector&gt;
  </code></pre>