Sunday, February 22, 2015

Setting SSL Security can let grade A

To get a good grade in very easy to stay just follow the steps below.

Changes to the file with the command
pico /etc/httpd/conf.d/vhost_domain-name.conf

Find the line: <VirtualHost *: 443>

add below: Strict-Transport-Security "max-age = 63072000;"

or if using SSL wildcard: Strict-Transport-Security "max-age = 63072000; includeSubDomains"

Then see row after: SSLEngine on

If there is no add the following code:

SSLCompression on
SSLHonorCipherOrder on
SSLProtocol All -SSLv2 -SSLv3
SSLHonorCipherOrder On

see also browse SSLCipherSuite

fox with the following code:

or try:

Save the file and restart restart Apache with the command: service httpd restart

This additional function so that if anyone browsing using http will be automatically forwarded to the https

pico /home/username/

Add the following:

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond% {HTTPS} off
  RewriteRule (. *) Https: //% {HTTP_HOST}% {REQUEST_URI}
</ IfModule>

To test lab
Good luck