Skip to content

Instantly share code, notes, and snippets.

@dwolfhub
Created January 20, 2015 05:00
Show Gist options
  • Save dwolfhub/fc8b2dfd72ad2c56cf1a to your computer and use it in GitHub Desktop.
Save dwolfhub/fc8b2dfd72ad2c56cf1a to your computer and use it in GitHub Desktop.
Optimal SSL configuration for Nginx
server {
server_name www.example.com;
listen 443;
ssl on;
ssl_certificate /path/to/ssl-bundle.crt;
ssl_certificate_key /path/to/private.key;
ssl_session_timeout 5m;
ssl_prefer_server_ciphers On;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS;
ssl_session_cache shared:SSL:10m;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment