ssl.conf 907 B

123456789101112131415161718
  1. ssl_session_timeout 5m;
  2. ssl_session_cache shared:SSL:10m;
  3. ssl_dhparam /etc/ssl/private/dhparam.pem;
  4. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  5. 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:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK';
  6. ssl_prefer_server_ciphers on;
  7. add_header Strict-Transport-Security max-age=15768000;
  8. ssl_stapling on;
  9. ssl_stapling_verify on;
  10. resolver 8.8.8.8 8.8.4.4 valid=300s;
  11. resolver_timeout 5s;
  12. ssl_ecdh_curve secp384r1;