Ultima attività 6 months ago

10-ssl.conf Raw
1# this is a dovecot config snippet, inclide me into /etc/dovecot/local.conf
2# SSL protocols to use
3ssl_protocols = !SSLv2 !SSLv3
4# for checking that service
5openssl s_client -connect <hostname>:143 -starttls imap -ssl3
fix_apache2.sh Raw
1#!/bin/sh
2#if [ "$(netstat -tapn | grep 'apache2' | awk {'print $7'} | sed 's#^[0-9]*/##' | tail -1 )" = "apache2" ]; then
3if [ "$(netstat -tapn | grep 'apache2' | awk {'print $7'} | sed 's#^[0-9]*/##' | tail -1 )" = "apache2" ]; then
4 if ! [ -f /etc/apache2/conf.d/x_disable_SSLv3.conf ]; then
5 cat <<EOF >> /etc/apache2/conf.d/x_disable_SSLv3.conf
6<IfModule mod_ssl.c>
7SSLProtocol all -SSLv2 -SSLv3
8</IfModule>
9EOF
10 /etc/init.d/apache2 restart
11 fi
12fi
13exit 0
14# for checking that service
15testssl.sh --poodle <vHost> | grep POODLE
fix_apache2_strong.sh Raw
1#!/bin/sh
2if [ "$(netstat -tapn | grep 'apache2' | awk {'print $7'} | sed 's#^[0-9]*/##' | tail -1 )" = "apache2" ]; then
3 if ! [ -f /etc/apache2/conf.d/x_strong_cipherlist.conf ]; then
4 cat <<EOF >> /etc/apache2/conf.d/x_strong_cipherlist.conf
5<IfModule mod_ssl.c>
6 SSLCipherSuite AES256+EECDH:AES256+EDH
7 SSLProtocol All -SSLv2 -SSLv3
8 SSLHonorCipherOrder On
9 <IfVersion >= 2.4>
10 SSLCompression off # Requires Apache >= 2.4
11 SSLUseStapling on # Requires Apache >= 2.4
12 SSLStaplingCache "shmcb:logs/stapling-cache(150000)" # Requires >= Apache 2.4
13 </IfVersion>
14</IfModule>
15<IfModule mod_headers.c>
16 Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains"
17 Header always set X-Frame-Options DENY
18 Header always set X-Content-Type-Options nosniff
19</IfModule>
20EOF
21 /etc/init.d/apache2 restart
22 fi
23fi
24exit 0
25# for checking that service
26testssl.sh --poodle <vHost> | grep POODLE
haproxy.conf Raw
1# this is a haproxy config snippet, include me into /etc/haproxy/haproxy.conf
2bind :443 ssl crt <crt> ciphers <ciphers> no-sslv3
3# for checking that service
4testssl.sh --poodle <vHost> | grep POODLE
imapd-ssl Raw
1# this is a courier-imapd config, include me into /etc/courier/imapd-ssl
2# ensure that all SSL* variants are removed
3TLS_PROTOCOL=TLS1
4# for checking that service
5nmap --script ssl-enum-ciphers -p 993 <hostname> | grep SSLv
main.cf Raw
1# this is a postfix config snippet, include me into /etc/postfix/main.cf
2smtp_tls_protocols=!SSLv2,!SSLv3
3smtp_tls_mandatory_protocols=!SSLv2,!SSLv3
4smtpd_tls_protocols=!SSLv2,!SSLv3
5smtpd_tls_mandatory_protocols=!SSLv2,!SSLv3
6# for checking that service
7openssl s_client -connect <hostname>:25 -starttls smtp -ssl3
ssl.conf Raw
1# this is a nginx config snippet, put me into /etc/nginx/conf.d
2ssl_session_cache shared:SSL:10m;
3ssl_session_timeout 10m;
4ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
5# for checking that service
6testssl.sh --poodle <vHost> | grep POODLE
ssl_strong.conf Raw
1# this is a nginx config snippet, put me into /etc/nginx/conf.d
2ssl_ciphers "AES256+EECDH:AES256+EDH";
3ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
4ssl_prefer_server_ciphers on;
5ssl_session_cache shared:SSL:10m;
6ssl_session_timeout 10m;
7add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
8add_header X-Frame-Options DENY;
9add_header X-Content-Type-Options nosniff;
10ssl_stapling on; # Requires nginx >= 1.3.7
11ssl_stapling_verify on; # Requires nginx => 1.3.7
12resolver $DNS-IP-1 $DNS-IP-2 valid=300s;
13resolver_timeout 5s;
14# for checking that service
15testssl.sh --poodle <vHost> | grep POODLE