Get an A+ on Qualys SSL Labs Test

Getting an A+ on the Qualys SSL Labs test can be tedious, specially if you are trying to achieve this for the first time. This is a work in progress. In the meantime here are some configurations to aid you
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

Depending on
ssl_prefer_server_ciphers on;
ssl_dhparam /etc/nginx/dhparam.pem;

# Enable HSTS
add_header Strict-Transport-Security max-age=63072000;

# Cache SSL sessions for 10m (this is about 40,000 sessions), timing them out
# after 24 hours.
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 24h;

# Set the buffer size to 1400 bytes (that way it fits into a single MTU).
ssl_buffer_size 1400;

#ssl_stapling on;
#ssl_stapling_verify on;
#resolver valid=300s;
#resolver_timeout 10s;

Generating Key

cd /etc/nginx
openssl dhparam -out dhparam.pem 4096

Odin Plesk Command

/usr/local/psa/admin/bin/httpdmng –reconfigure-all

nginx -s reload