Tightening TLS security: Difference between revisions
From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs) mNo edit summary |
Brian Wilson (talk | contribs) mNo edit summary |
||
Line 4: | Line 4: | ||
Then follow the suggestions to improve it. | Then follow the suggestions to improve it. | ||
== nginx == | |||
The test guided me to https://weakdh.org/sysadmin.html | |||
where I looked up my nginx server. | where I looked up my nginx server. | ||
Line 19: | Line 21: | ||
ssl_prefer_server_ciphers on; | ssl_prefer_server_ciphers on; | ||
ssl_dhparam /etc/ssl/dhparam.pem; | ssl_dhparam /etc/ssl/dhparam.pem; | ||
== tomcat8 == | |||
Still working on this one. I had to install non-export JAR files from Oracle. | |||
But I still don't have the basic set up working! |
Revision as of 00:16, 30 June 2017
Go to https://www.ssllabs.com/ssltest/analyze.html and test the security on your server.
Then follow the suggestions to improve it.
nginx
The test guided me to https://weakdh.org/sysadmin.html where I looked up my nginx server.
I had to create a dhparams.pem file by running "openssl dhparam -out dhparams.pem 2048"
And I added some lines to my nginx set up. That brought my grade up from B to A+.
These are the lines that I added to nginx configuration for my SSL site.
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA'; ssl_prefer_server_ciphers on; ssl_dhparam /etc/ssl/dhparam.pem;
tomcat8
Still working on this one. I had to install non-export JAR files from Oracle. But I still don't have the basic set up working!