title: Tomcat: Trouble with SSL https connection on port 8443
body: <p>We are having trouble with the https (port 8443) connection on an app that runs on Tomcat 7. The app is running fine on http (port 80) now. I have uncommented the "Define a SSL ..." section in the server.xml file and set all the property values (see below). However, when I try to run the app through a browser, I get the error, "The remote device or resource won't accept the connection." </p>
  
  <p>Also, when I run a port utility on the server to see what ports are open and listening, it displays port 80 for Tomcat, and port 443 is also listening. Java version 1.6, Tomcat 7 versions.</p>
  
  <p>Any ideas would be greatly appreciated as I've been banging my head on this one for weeks.</p>
  
  <pre><code>&lt;connector port="443" maxhttpheadersize="8192" maxthreads="150" minsparethreads="25" 
              maxsparethreads="75" enablelookups="false" disableuploadtimeout="true" acceptcount="100" 
              scheme="https" secure="true" sslprotocol="TLS" clientauth="false" 
              keystorefile="K:/tomcat1.keystore" keystorepass="password"
  </code></pre>
  
  <p>command i used to generate keystore file</p>
  
  <pre><code>keytool -genkey -alias tomcat -keyalg RSA -keystore K:/tomcat1.keystore
  </code></pre>
  
  <p>password: password</p>
  
  <p>I could see in cmd prompt- OpenSSL succeessfully initiated while starting tomcat server.</p>
  
  <p>Help me out</p>