Tightening TLS security: Difference between revisions
From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs) mNo edit summary |
Brian Wilson (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 14: | Line 14: | ||
That brought my grade up from B to A+. | That brought my grade up from B to A+. | ||
[[file:grade.png|caption:oh ah I made the grade | [[file:grade.png|caption:oh ah I made the grade]] | ||
These are the lines that I added to nginx configuration for my SSL site. | These are the lines that I added to nginx configuration for my SSL site. | ||
Line 26: | Line 26: | ||
Still working on this one. I had to install non-export JAR files from Oracle. | 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! | But I still don't have the basic set up working! | ||
=== Key conversion === | |||
It's a pain, if you don't create the key pair in keytool in the first place you have to trick it | |||
https://stackoverflow.com/questions/906402/importing-an-existing-x509-certificate-and-private-key-in-java-keystore-to-use-i |
Latest revision as of 02:18, 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!
Key conversion
It's a pain, if you don't create the key pair in keytool in the first place you have to trick it