lundi 15 novembre 2021

problems with cloudflare's SSL certificate in ubuntu apache2 server

I use cloudflare services for DNS and SSL certificate, but even after the certificate config the website (www.endeavor.tec.br) remains unsafe.

I configured the certified in the serve this way:

1 - I created a certificate(pem) and a key(crt) in the cloudflare.

2 - I enabled the SSL by the following command:

sudo a2enmod ssl

3 - I created a directory in the origin server and attached both with the names endeavor.tec.br.pem and endeavor.tec.br.crt

4 - I altered the endeavor.tec.br.conf file in the apache directory changing the VirtualHost to the 443 port and inserting SSL lines as follow:

SSLCertificateFile /etc/cloudflare/endeavor.tec.br.crt SSLCertificateKeyFile /etc/cloudflare/endeavor.tec.br.key SSLCertificateChainFile /etc/cloudflare/endeavor.tec.br.crt

The website is accessible so the DNS is working, but remains unsafe. How could I fix it?




Aucun commentaire:

Enregistrer un commentaire