Tomcat 8: Security certificate

0

Using cerbot I have obtained a certificate for my domain, which creates me in the folder: /etc/letsencrypt/live/"mydomain" .

The following files: cert.pem chain.pem fullchain.pem privatekey.pem

Then I converted the fullchain certificate and the certificate of .pem to .crt with this command:

openssl x509 -outform der -in your-cert.pem -out your-cert.crt

Then I put in the file /var/lib/tomcat8/conf/server.xml the next connector for the https scheme by port 8443.

<Connector
  protocol="org.apache.coyote.http11.Http11AprProtocol"
  port="8443" maxThreads="200"
  scheme="https" secure="true" SSLEnabled="true"
  SSLCertificateFile="/etc/letsencrypt/live/"mydomain"/fullchain.pem"         
  SSLCertificateKeyFile="/etc/letsencrypt/live/"mydomain"/privatekey.pem"
  SSLVerifyClient="optional" SSLProtocol="TLSv1+TLSv1.1+TLSv1.2"/>

Finally, restart tomcat8: service tomcat8 restart

And it's supposed that with this, if I connect to my page with https, it should work, but the browser is not able to load the page.

I'll take some advice or help Thanks

    
asked by Norhan 23.04.2018 в 13:25
source

0 answers