@related : HTTPD SSL HTTP Server PHP SQL SSL

index

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 :

  1. 12263 see SSL page
 Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error.

Name or service not known: Failed to resolve server name for

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

make_sock: could not bind to address [::]:443

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/*

"500 Internet Server Error"

ERROR

[warn] RSA server certificate CommonName (CN) `$hostname.example.org' does NOT match server name!?

java / j2ee / tomcat

apache.txt · Last modified: 2014/03/31 21:14 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki