@related : HTTPD SSL HTTP Server PHP SQL SSL
sudo aptitude install libapache2-mod-gnutls sudo a2enmod gnutls sudo a2ensite default-ssl && sudo invoke-rc.d apache2 restart
openssl s_client -connect localhost:443 wget -O- https://localhost:443/
MisC :
Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error.
sudo invoke-rc.d apache2 restart Restarting web server: apache2[Thu Jan 03 10:25:07 2008] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.60 (check DNS) -- or specify an explicit ServerName httpd (no pid file) not running [Thu Jan 03 10:25:23 2008] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.60 (check DNS) -- or specify an explicit ServerName * http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch20_:_The_Apache_Web_Server#The_Apache_Error_Log_Files
grep 192.168.0.60 /etc/hosts 192.168.0.60 localhost
sudo invoke-rc.d apache2 restart ... (98)Address already in use: make_sock: could not bind to address [::]:443 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down Unable to open logs failed! invoke-rc.d: initscript apache2, action “restart” failed.
sudo invoke-rc.d apache2 force-reload
netstat -tunap | grep 443 tcp6 0 0 :::443 :::* LISTEN 32002/apache2
Fail :
cat /etc/apache2/ports.conf Listen 80 <IfModule mod_ssl.c> Listen 443 </IfModule>
Success :
cat /etc/apache2/ports.conf Listen 80 443
Wip :
nc localhost 443 localhost [127.0.0.1] 443 (https) : Connection refused
grep 443 /etc/apache2/sites-enabled/*
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.
Apache/ProXad [[Dec 3 2006 11:06:17]] Server at ... Port 80
[warn] RSA server certificate CommonName (CN) `$hostname.example.org' does NOT match server name!?