title: How to configure HTTPS for Tomcat on AWS
body: <p>I have an instance on AWS with Tomcat that works on <code>80</code> port.
  My security groups has following configuration:
  <a href="https://i.stack.imgur.com/xcOKC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xcOKC.png" alt="enter image description here"></a></p>
  
  <p>I did do configuration for Tomcat and keytool. On local machine it works and I can do <code>https://localhost:8443</code>, but how can I open HTTPS for port <code>8443</code> on AWS?</p>
  
  <pre><code>&lt;Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
         maxThreads="150" scheme="https" secure="true"
         clientAuth="false" sslProtocol="TLS"
         keystoreFile="/home/user/keytools/ssl"
         keystorePass="123456"/&gt;
  </code></pre>