Last active
March 3, 2016 20:12
-
-
Save jaircuevajunior/2d57cd2e1283bc0b3822 to your computer and use it in GitHub Desktop.
Secure SSL Enable Apache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Editar o arquivo /etc/apache2/mods-available/ssl.conf | |
Comentar e adicionar as linhas: SSLCipherSuite e SSLProtocol | |
Editar o arquivo do vhost em questão | |
SSLEngine on | |
SSLProtocol +TLSv1.2 +TLSv1.1 +TLSv1 | |
SSLCompression off | |
SSLHonorCipherOrder On | |
SSLCipherSuite "ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA" | |
Header always set Strict-Transport-Security "max-age=63072000;" | |
SSLCertificateKeyFile /path/to/file.key | |
SSLCertificateFile /path/to/file.crt | |
SSLCertificateChainFile /path/to/file.ca-bundle | |
Test it: https://www.ssllabs.com/ssltest/analyze.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment