Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

NGINX + Cloudflare SSL Certificate is not valid

I’ve tried to set a simple server for testing purpose. I am totally new in website deployment so i don’t know how to resolve this.

enter image description here

this is nginx conf:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

server {
    listen 80;
    listen [::]:80;
    server_name shhossain.info www.shhossain.info;
    return 302 https://$server_name$request_uri;
}

server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    ssl_certificate         /etc/ssl/certs/cert.pem;
    ssl_certificate_key     /etc/ssl/private/key.pem;
    server_name shhossain.info www.shhossain.info;

    location / {
                include proxy_params;
                proxy_pass http://unix:/home/sifat/python/flask-app-demo/shhossain.sock;
        }
}

cert.pem and key.pem i’ve copied from cloudflared Origin Certificates.
i am using azure for web hosing.

I’ve followed this tutorial. https://www.digitalocean.com/community/tutorials/how-to-host-a-website-using-cloudflare-and-nginx-on-ubuntu-20-04

>Solution :

"Set the SSL/TLS encryption mode to ‘Full’ or Full (Strict)"

"Terminal:"
"sudo systemctl restart nginx"
Ensure all traffic coming through Cloudflare is passing through Cloudflare’s SSL/TLS protection.

Make sure your DNS records (such as A or CNAME records) are proxied through Cloudflare.

Check again from an incognito tab or another computer without cache.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading