August 2017
Intermediate to advanced
278 pages
8h 53m
English
The first thing we need to do is regenerate our certificate to ensure that it's 4096-bit for the RSA key. Most CAs issue a 2048-bit certificate, which will only give us 90 percent for the Key Exchange evaluation. If you're using Let's Encrypt, you'll need to generate the certificate with the --rsa-key-size 4096 parameter.
Here's our server directive, which has been based on the PCI-DSS configuration and tweaked further:
server {
listen 443 http2 default_server;
server_name ultimate.nginxcookbook.com;
ssl_certificate /etc/letsencrypt/live/ultimate.nginxcookbook.com /fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/ultimate.nginxcookbook.com /privkey.pem; ssl_protocols TLSv1.2; ssl_ciphers EECDH+CHACHA20:EECDH+CHACHA20- ...Read now
Unlock full access