Skip to content

Instantly share code, notes, and snippets.

  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save neilstuartcraig/7822514 to your computer and use it in GitHub Desktop.
A secure SSL certificate configuration for Nginx (Dec 2013) which mitigates most known vulnerabilities whilst providing good browser coverage and a grade A rating on the GlobalSign SSL cert checker (
ssl on;
ssl_certificate /path/to/certs/;
ssl_certificate_key /path/to/certs/;
# References used along with my own work:
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_session_cache shared:SSL:20m;
ssl_session_timeout 60m;
ssl_stapling on;
ssl_trusted_certificate /etc/nginx/certs/;
add_header Strict-Transport-Security max-age=31536000;
add_header X-Frame-Options DENY;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment