Advertisement
mkoflerAT

ssl-params.conf

Dec 10th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.85 KB | None | 0 0
  1. # from https://cipherli.st/
  2. # and https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html
  3.  
  4. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  5. ssl_prefer_server_ciphers on;
  6. ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
  7. ssl_ecdh_curve secp384r1;
  8. ssl_session_cache shared:SSL:10m;
  9. ssl_session_tickets off;
  10. ssl_stapling on;
  11. ssl_stapling_verify on;
  12. resolver 8.8.8.8 8.8.4.4 valid=300s;
  13. resolver_timeout 5s;
  14. # Disable preloading HSTS for now.  You can use the commented out header line that includes
  15. # the "preload" directive if you understand the implications.
  16. #add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
  17. add_header Strict-Transport-Security "max-age=63072000; includeSubdomains";
  18. add_header X-Frame-Options DENY;
  19. add_header X-Content-Type-Options nosniff;
  20.  
  21. ssl_dhparam /etc/ssl/certs/dhparam.pem;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement