Skip to content

Commit

Permalink
Preferred config for secure SSL
Browse files Browse the repository at this point in the history
  • Loading branch information
lebinh committed Feb 18, 2015
1 parent ed0a399 commit 207abc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ A collection of useful Nginx configuration snippets inspired by
- [Security](#security)
- [Enable Basic Authentication](#enable-basic-authentication)
- [Only Allow Access From Localhost](#only-allow-access-from-localhost)
- [Strengthen SSL](#strengthen-ssl)
- [Secure SSL settings](#secure-ssl-settings)
- [Miscellaneous](#miscellaneous)
- [Sub-Request Upon Completion](#sub-request-upon-completion)
- [Enable Cross Origin Resource Sharing](#enable-cross-origin-resource-sharing)
Expand Down Expand Up @@ -245,8 +245,7 @@ location /local {
}
```

### Strengthen SSL
Strengthen SSL Settings
### Secure SSL settings
- Disable SSLv3 which is enabled by default. This prevents [POODLE SSL Attack](http://nginx.com/blog/nginx-poodle-ssl/).
- Ciphers that best allow protection from Beast. [Mozilla Server Side TLS and Nginx]( https://wiki.mozilla.org/Security/Server_Side_TLS#Nginx)
```nginx
Expand All @@ -255,6 +254,7 @@ ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
# Ciphers set to best allow protection from Beast, while providing forwarding secrecy, as defined by Mozilla (Intermediate Set) - https://wiki.mozilla.org/Security/Server_Side_TLS#Nginx
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA;
ssl_prefer_server_ciphers on;
```

## Miscellaneous
Expand Down

0 comments on commit 207abc4

Please sign in to comment.