title: HTTPS is not working with domain name or static IP but works fine with local IP
body: <p>I am new to SSL and trying to enable with one of our running project.</p>
  
  <p>I enabled HTTPS in local server and live server both place it works fine with local IP address. But when I try to run with domain name or static IP it shows that the connection timed out.</p>
  
  <p>Example:</p>
  
  <p>I created key store by following command. and .cer file from the CA.</p>
  
  <p>Generate a Java keystore and key pair</p>
  
  <pre><code>keytool -genkey -alias mydomain -keyalg RSA -keystore keystore.jks -keysize 2048
  </code></pre>
  
  <p>Generate a certificate signing request (CSR) for an existing Java keystore</p>
  
  <pre><code>keytool -certreq -alias mydomain -keystore keystore.jks -file mydomain.csr
  </code></pre>
  
  <p>Import a root or intermediate CA certificate to an existing Java keystore</p>
  
  <pre><code>keytool -import -trustcacerts -alias root -file Thawte.crt -keystore keystore.jks
  </code></pre>
  
  <p>Also my server.xml is like this:</p>
  
  <pre><code>    &lt;Connector port="80" address="${jboss.bind.address}"    
       maxThreads="250" maxHttpHeaderSize="8192"
       emptySessionPath="true" protocol="HTTP/1.1"
       enableLookups="false" redirectPort="443" acceptCount="100"
       connectionTimeout="20000" disableUploadTimeout="true" compression="1" /&gt;
  
  
   &lt;Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
            maxThreads="150" scheme="https" secure="true"
            clientAuth="false"
        strategy="ms"
            address="${jboss.bind.address}"
            keystoreFile="${jboss.server.home.dir}/conf/cert/keystore.jks"
            keystorePass="isq+bpo" sslProtocol="TLS"/&gt;    
  </code></pre>
  
  <p>In my web.xml I have given security constraints as confidential</p>
  
  <p>I am running my Jboss 4.2.2 ga with </p>
  
  <pre><code>run -b 0.0.0.0 
  </code></pre>
  
  <p>Can anyone please let me know where I am wrong.</p>
  
  <p>It works fine if I try to access as</p>
  
  <pre><code>https://a.b.c.d/ctxname
  </code></pre>
  
  <p>but doesn't work if try to access as</p>
  
  <pre><code>https://www.mydomain.info/ctxname
  </code></pre>
  
  <p>Can it be any firewall issue - we are using Sonicwall?</p>