Hi!,
First, thanks for all involved to make this possible !!
I have this page gesnex.com that looks like fine on 80, but gaves error when I try to go to 443. External analysis says that the certificate it’s OK (https://www.sslshopper.com/ssl-checker.html#hostname=www.gesnex.com) but if you go to :443 , an error appears:
400 Bad Request - The plain HTTP request was sent to HTTPS port
What I’m doing wrong?
server {
listen 443 ssl;
server_name localhost;
root <PATH>;
ssl on;
ssl_certificate /etc/letsencrypt/live/<PATH>/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/<PATH>/privkey.pem;
ssl_stapling on;
ssl_stapling_verify on;
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
# SSL PCI Compliance
ssl_session_cache shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA$
...
}
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name localhost;
root <PATH>;
#ssl on;
...
}
I followed this guide: https://community.letsencrypt.org/t/nginx-installation/3502/5
Thanks =)