# Depends: setenvif mime socache_shmcbLoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so
ServerName myserverSSLEngine on # tried with this directive at the top and the bottom of this fileDocumentRoot /var/www/<Directory "/var/www/">Options Indexes FollowSymLinks MultiViewsAllowOverride NoneOrder allow,denyallow from allSSLRequireSSL # tried with and without this directive</Directory>ErrorLog ${APACHE_LOG_DIR}/ssl-test.logSSLCertificateFile /etc/ssl/certs/test1.cert.pemSSLCertificateKeyFile /etc/ssl/private/test1.cert.key# tried with and without all of the following directivesSSLCipherSuite HIGH:!aNULL:!MD5
#SSLCipherSuite HIGH
SSLProtocol -all +TLSv1 +SSLv3
#SSLProtocol all
SSLVerifyClient noneSSLProxyEngine offSSLRequireSSLSSLRandomSeed startup file:/dev/urandom 1024SSLRandomSeed connect file:/dev/urandom 1024
$ sudo -u www-data cp /etc/ssl/certs/test1.cert.pem /etc/ssl/private/test1.cert.key /tmp/
$ sudo -u www-data ls -l /usr/lib/apache2/modules/mod_ssl.so-rwxr-xr-x 1 root root 211184 Jul 22 07:38 /usr/lib/apache2/modules/mod_ssl.so
[ssl:info] [pid 21186:tid 139942871500672] AH01887: Init: Initializing (virtual) servers for SSL[ssl:info] [pid 21186:tid 139942871500672] AH01876: mod_ssl/2.4.7 compiled against Server: Apache/2.4.7, Library: OpenSSL/1.0.1f[auth_digest:notice] [pid 21187:tid 139942871500672] AH01757: generating secret for digest authentication ...[auth_digest:debug] [pid 21187:tid 139942871500672] mod_auth_digest.c(250): AH01759: done[ssl:debug] [pid 21297:tid 140596905265024] ssl_engine_pphrase.c(181): AH02199: SSL not enabled on vhost 127.0.1.1:80, skipping SSL setup[socache_shmcb:debug] [pid 21297:tid 140596905265024] mod_socache_shmcb.c(389): AH00821: shmcb_init allocated 512000 bytes of shared memory...[ssl:info] [pid 21297:tid 140596905265024] AH01887: Init: Initializing (virtual) servers for SSL[ssl:info] [pid 21297:tid 140596905265024] AH01876: mod_ssl/2.4.7 compiled against Server: Apache/2.4.7, Library: OpenSSL/1.0.1f[mpm_worker:notice] [pid 21297:tid 140596905265024] AH00292: Apache/2.4.7 (Ubuntu) OpenSSL/1.0.1f configured -- resuming normal operations[mpm_worker:info] [pid 21297:tid 140596905265024] AH00293: Server built: Jul 22 2014 14:36:38[core:notice] [pid 21297:tid 140596905265024] AH00094: Command line: '/usr/sbin/apache2'[mpm_worker:debug] [pid 21297:tid 140596905265024] worker.c(1829): AH00294: Accept mutex: fcntl (default: sysvsem)
$ openssl ciphersECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:...
$ apache2ctl -VAH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this messageServer version: Apache/2.4.7 (Ubuntu)Server built: Jul 22 2014 14:36:38Server's Module Magic Number: 20120211:27Server loaded: APR 1.5.1-dev, APR-UTIL 1.5.3Compiled using: APR 1.5.1-dev, APR-UTIL 1.5.3Architecture: 64-bitServer MPM: workerthreaded: yes (fixed thread count)forked: yes (variable process count)Server compiled with....-D APR_HAS_SENDFILE-D APR_HAS_MMAP-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)-D APR_USE_SYSVSEM_SERIALIZE-D APR_USE_PTHREAD_SERIALIZE-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT-D APR_HAS_OTHER_CHILD-D AP_HAVE_RELIABLE_PIPED_LOGS-D DYNAMIC_MODULE_LIMIT=256-D HTTPD_ROOT="/etc/apache2"-D SUEXEC_BIN="/usr/lib/apache2/suexec"-D DEFAULT_PIDLOG="/var/run/apache2.pid"-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"-D DEFAULT_ERRORLOG="logs/error_log"-D AP_TYPES_CONFIG_FILE="mime.types"-D SERVER_CONFIG_FILE="apache2.conf"
$ apache2ctl -SAH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this messageVirtualHost configuration:ServerRoot: "/etc/apache2"Main DocumentRoot: "/var/www"Main ErrorLog: "/var/log/apache2/mod_ssl.log"Mutex authdigest-client: using_defaultsMutex ssl-stapling: using_defaultsMutex ssl-cache: using_defaultsMutex default: dir="/var/lock/apache2" mechanism=fcntlMutex mpm-accept: using_defaultsMutex authdigest-opaque: using_defaultsMutex watchdog-callback: using_defaultsPidFile: "/var/run/apache2/apache2.pid"Define: DUMP_VHOSTSDefine: DUMP_RUN_CFGDefine: ENABLE_USR_LIB_CGI_BINUser: name="www-data" id=33Group: name="www-data" id=33
$ apache2ctl -tAH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this messageSyntax OK