-
-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1127 from roots/update-ssl-config
Use modern SSL config for Nginx
- Loading branch information
Showing
2 changed files
with
34 additions
and
13 deletions.
There are no files selected for viewing
35 changes: 30 additions & 5 deletions
35
roles/nginx/templates/h5bp/directive-only/ssl-stapling.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,34 @@ | ||
# OCSP stapling... | ||
# ---------------------------------------------------------------------- | ||
# | Online Certificate Status Protocol stapling | | ||
# ---------------------------------------------------------------------- | ||
|
||
# OCSP is a lightweight, only one record to help clients verify the validity of | ||
# the server certificate. | ||
# OCSP stapling allows the server to send its cached OCSP record during the TLS | ||
# handshake, without the need of 3rd party OCSP responder. | ||
# | ||
# https://wiki.mozilla.org/Security/Server_Side_TLS#OCSP_Stapling | ||
# https://tools.ietf.org/html/rfc6066#section-8 | ||
# https://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_stapling | ||
# | ||
# (1) Use Cloudflare 1.1.1.1 DNS resolver | ||
# https://developers.cloudflare.com/1.1.1.1/setting-up-1.1.1.1/ | ||
# | ||
# (2) Use Google 8.8.8.8 DNS resolver | ||
# https://developers.google.com/speed/public-dns/docs/using | ||
# | ||
# (3) Use Dyn DNS resolver | ||
# https://help.dyn.com/internet-guide-setup/ | ||
|
||
ssl_stapling on; | ||
ssl_stapling_verify on; | ||
|
||
#trusted cert must be made up of your intermediate certificate followed by root certificate | ||
#ssl_trusted_certificate /path/to/ca.crt; | ||
|
||
resolver 8.8.8.8 8.8.4.4 216.146.35.35 216.146.36.36 valid=60s; | ||
resolver | ||
# (1) | ||
1.1.1.1 1.0.0.1 [2606:4700:4700::1111] [2606:4700:4700::1001] | ||
# (2) | ||
8.8.8.8 8.8.4.4 [2001:4860:4860::8888] [2001:4860:4860::8844] | ||
# (3) | ||
# 216.146.35.35 216.146.36.36 | ||
valid=60s; | ||
resolver_timeout 2s; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters