1. Edit the /var/cpanel/templates/apache2/ssl_vhost.default file and change add the SSLProtocol directive and change SSLCipherSuite directive as follows:
Code:
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!LOW:!SSLv2:!EXP:+HIGH:+MEDIUM
SSLCertificateFile [% vhost.sslcertificatefile %]
SSLCertificateKeyFile [% vhost.sslcertificatekeyfile %]
2. Recompile the http.conf file by running /usr/local/cpanel/bin/build_apache_conf
3. Verify the /usr/local/apache/conf/httpd.conf now contains the correct SSLProtocol and SSLCipherSuite directives from the template file for each SSL enabled site:
Code:
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!LOW:!SSLv2:!EXP:+HIGH:+MEDIUM
SSLCertificateFile /etc/ssl/certs/HOSTNAME.com.crt
SSLCertificateKeyFile /etc/ssl/private/HOSTNAME.com.key
4. Restart apache by running /scripts/restartsrv httpd
5. Verify that SSL v2 is disabled by running the following commands (change HOSTNAME.com to your server's correct hostname):
Code:
openssl s_client -ssl2 -connect HOSTNAME.com:443
This should fail with an ssl handshake failure message
Code:
wget --spider --secure-protocol=SSLv2 https://HOSTNAME.com/
This should fail with an Unable to establish SSL connection message