Generating RSA private key, 2048 bit long modulus ....++++++ ...............................++++++ e is 65537 (0x10001) Enter pass phrase: Verifying - Enter pass phrase:
You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [GB]:DE State or Province Name (full name) [Berkshire]:Bayern Locality Name (eg, city) [Newbury]:Fuerth Organization Name (eg, company) [My Company Ltd]:Domain GmbH Organizational Unit Name (eg, section) []: Common Name (eg, your name or your server's hostname) []:domain.de Email Address []:webmaster@domain.de Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: An optional company name []:
Siehe: http://httpd.apache.org/docs/2.2/ssl/ssl_faq.html#selfcert
NameVirtualHost domain.de:443
<VirtualHost domain.de:443>
DocumentRoot /home/domain/www
ServerName domain.de:443
ServerAlias www.domain.de
######################################################################
ServerAdmin webmaster@domain.de
ErrorLog /var/log/httpd/domain-error_log
CustomLog /var/log/httpd/domain-access_log common
<Directory /home/domain/www>
# beachte .htaccess :
AllowOverride All
</Directory>
# zusaetzlich fuer SSL:
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
SSLCertificateKeyFile /etc/pki/tls/domain/domain.key
SSLCertificateFile /etc/pki/tls/domain/domain.crt
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/var/www/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</VirtualHost>
Debian:
Von https://github.com/wki/MyHomeBinaries/blob/master/bin/check_ssl.sh:
#!/bin/bash
# This script is taken from:
# http://superuser.com/questions/109213/is-there-a-tool-that-can-test-what-ssl-tls-cipher-suites-a-particular-website-of
#
if [[ "x$1" == "x" ]]; then
echo "must give ip or host name as parameter"
exit 1
fi
server=$1
echo "Testing Server $server..."
# OpenSSL requires the port number.
DELAY=1
openssl ciphers -v 'ALL:eNULL' | while read cipher ssl kx au enc mac export
do
echo -n -e "Testing $cipher, $ssl, $enc... \t"
result=`echo -n | openssl s_client -cipher "$cipher" -connect $server:443 2>&1`
if [[ "$result" =~ "Cipher is " ]] ; then
echo YES
else
if [[ "$result" =~ ":error:" ]] ; then
error=`echo -n $result | cut -d':' -f6`
echo NO \($error\)
else
echo UNKNOWN RESPONSE
echo $result
fi
fi
sleep $DELAY
done