Trying to debug yesterday’s The connection to www.raditha.com terminated unexpectedly error with Apache 2 SSL. Tried using the openssl client (openssl s_client -connect raditha.com:443 -state -debug). It produces the following result; As always there are lots of pundits with strong opinions, weak reasoning and no real answers.
9439:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:475:
Finally I decided to roll back all the changes and start off from scratch, First I recreated the certificates/keys, then took the original httpd.conf file and recreated all the VirtualHost entries. Then the following Listen and NameVirtualHost directives were added to the configuration.
Listen 443
NameVirtualHost 67.131.250.71:80
NameVirtualHost 67.131.250.71:443
Then for each VirtualHost I specifically stated what port should be used:
eg:
ServerName raditha.com
…..
ServerName raditha.com:443
…..
That did the trick. So without further ado let’s take a look at the section of this site secured with SSL. Please do take a moment to add the the root certificate.



