Advertisement
kastielspb

Custom SSL keys

Mar 13th, 2019
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.68 KB | None | 0 0
  1. server {
  2.     server_name {domain};
  3.     listen 443 ssl http2;
  4.     listen [::]:443 ssl http2;
  5.     access_log off;
  6.  
  7.     ssl_certificate /etc/letsencrypt/live/{domain}/{domain}.crt;
  8.     ssl_certificate_key /etc/letsencrypt/live/{domain}/{domain}.key;
  9.  
  10.     ssl_protocols TLSv1.1 TLSv1.2;
  11.     ssl_prefer_server_ciphers on;
  12.     ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
  13.     ssl_ecdh_curve secp384r1;
  14.     ssl_session_timeout 24h;
  15.     ssl_session_tickets off;
  16.     ssl_stapling on;
  17.     ssl_stapling_verify on;
  18.     resolver 8.8.8.8 8.8.4.4 valid=300s;
  19.     resolver_timeout 5s;
  20.     ssl_buffer_size 4k;
  21.     add_header Strict-Transport-Security "max-age=31536000";
  22.  
  23.     ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement