December 2017
Intermediate to advanced
410 pages
11h 5m
English
PFS is a property of elliptical curve Diffie-Hellman. So, instead of using RSA, switch to the ECDHE key exchange.
Ideally, ECDHE should be the most preferred cipher. This is my current configuration:
ssl_ciphers "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH EDH+aRSA !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS !RC4";
It's time to generate strong DH key exchange parameters:
- # cd /etc/nginx/ssl - # openssl dhparam -out dh4096.pem 4096
It might take a few minutes to compute the previous command. Once the output file is generated, link it to your nginx configuration:
# ssl_dhparam /etc/nginx/ssl/dh4096.pem
The overall ...
Read now
Unlock full access