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;
ssl_ciphers ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS;

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 8.8.4.4 8.8.8.8 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