Nginx SNI and Letsencrypt on FreeBSD; Wrong certificate?

NuLL3rr0r nginx-forum at forum.nginx.org
Sun Sep 4 11:07:28 UTC 2016


Ops! Thank you so much Maxim. You are right! Reading your response again, I
just figured it out. Adding the following block solved the issue:

server {
    server_tokens   off;

    listen          443 ssl http2;
    listen          [::]:443 ssl http2;
    server_name     learnmyway.net;

    # Hardened SSL
    include                 /path/to/snippets/hardened-ssl;
    ssl_certificate         /path/to/certs/learnmyway.net.pem;
    ssl_certificate_key     /path/to/keys/learnmyway.net.pem;
    ssl_trusted_certificate /path/to/certs/learnmyway.net.pem;

    return 301 https://www.$server_name$request_uri;  # enforce www
}

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,269263,269381#msg-269381



More information about the nginx mailing list