title: Enable SSL on Tomcat using SSL CERTIFICATE, PRIVATE KEY and SSLCertificateChain CERTIFICATE
body: <p>I have SSL CERTIFICATE, PRIVATE KEY and SSLCertificateChain CERTIFICATE as follows:</p>
  
  <ul>
  <li><p>SSL CERTIFICATE:</p>
  
  <p>-----BEGIN CERTIFICATE-----</p>
  
  <p>certificate here</p>
  
  <p>-----END CERTIFICATE-----</p></li>
  <li><p>PRIVATE KEY:</p>
  
  <p>-----BEGIN RSA PRIVATE KEY-----</p>
  
  <p>key here</p>
  
  <p>-----END RSA PRIVATE KEY-----</p></li>
  <li><p>SSLCertificateChain CERTIFICATE:</p>
  
  <p>-----BEGIN CERTIFICATE-----</p>
  
  <p>SSLCertificateChain here</p>
  
  <p>-----END CERTIFICATE-----</p></li>
  <li><p>I have saved certificate in SSLCertificateFile.crt, key in
      SSLCertificateKeyFile.key and SSLCertificateChain certificate in
      SSLCertificateChainFile.crt. All the three files are saved at
      /opt/tomcat/conf/ </p></li>
  <li><p>In /opt/tomcat/conf/server.xml  modified the connector as:</p></li>
  </ul>
  
  <p>&lt;Connector executor="tomcatThreadPool" scheme="https" secure="true"
          port="443" protocol="HTTP/1.1"
                          connectionTimeout="20000" redirectPort="8443" acceptCount="100" SSLEnabled="true"
                          maxConnections="100000" SSLCertificateFile="/opt/tomcat/conf/SSLCertificateFile.cert"
          SSLCertificatKeyFile="/opt/tomcat/conf/SSLCertificateKeyFile.key"
                          SSLCertificateChainFile="/opt/tomcat/conf/SSLCertificateChainFile.cert"
          SSLProtocol="TLSv1"/></p>
  
  <p>I've restarted the tomcat server, <a href="http://www.digicert.com/help/" rel="nofollow noreferrer">http://www.digicert.com/help/</a> show the error "SSL Certificate is not trusted" as shown in the image.</p>
  
  <p><img src="https://i.stack.imgur.com/RP4mn.png" alt="enter image description here"></p>
  
  <p>Is there anything wrong in file extensions or the connetcor?</p>