title: How to configure Https on Tomcat 7 with SSL certificate?
body: <p>I want to configure https on my Tomcat Server. I got FreeSSL certificate. But I don't know steps to proceed. </p>
  
  <blockquote>
    <p><br>
    1. I got an email from FreeSSL provider with the text of the SSL certificate<br>
    2. I copied this text into file with extension .p7b<br>
    3. I added this certificate to new keystore<br>
    4. In server.xml I inserted path to this keystore and the pass as in:<br></p>
  </blockquote>
  
  <pre><code>&lt;Connector
    SSLEnabled='true'
     keystoreFile="/path/to/certificates/keystore"
      keystorePass="password"
    maxSpareThreads='75'
    port='8443'
    proxyPort='443'
    algorithm='SunX509'
    enableLookups='false'
    secure='true'
    maxThreads='150'
    connectionTimeout='20000'
    disableUploadTimeout='true'
    scheme='https'
    minSpareThreads='5'
    maxHttpHeaderSize='8192'
    sslProtocol='SSL'
    acceptCount='200'
    clientAuth='false'
  sslEnabledProtocols="TLSv1.2,TLSv1.1,TLSv1"
   ciphers="TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA256,
                          TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA256,
                          TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA256,
                          SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,
                          SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA"
  /&gt;
  </code></pre>
  
  <p>But after this steps I get next error:</p>
  
  <blockquote>
    <p>Cannot communicate securely with peer: no common encryption
    algorithm(s). (Error code: ssl_error_no_cypher_overlap)</p>
  </blockquote>
  
  <p>on FireFox and</p>
  
  <blockquote>
    <p>A secure connection cannot be established because this site uses an
    unsupported protocol. Error code: ERR_SSL_VERSION_OR_CIPHER_MISMATCH</p>
  </blockquote>
  
  <p>on Chrome</p>
  
  <p><strong>EDIT:</strong>
  When I requested SSLCertificate I created cert.csr and keystore.keystore. But now I don't use them. Can this be the problem?</p>
  
  <p><strong>EDIT2:</strong></p>
  
  <p>As was written in comments I found the initial keystore and I put in it new certificate. After this I got an error on firefox:</p>
  
  <blockquote>
    <p>Secure Connection Failed</p>
    
    <p>The connection to domain.com:8443 was interrupted while the page was loading.
        The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
        Please contact the website owners to inform them of this problem.</p>
  </blockquote>