Fixing Apache SSL23_GET_SERVER_HELLO:reason(1112)

I really struggled with this one for a whole day, I couldn’t for the life of me figure out when I did:

server:~ john$ curl -v
* About to connect() to port 443 (#0)
*   Trying
* connected
* Connected to ( port 443 (#0)
* SSLv3, TLS handshake, Client hello (1):
* error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112)
* Closing connection #0

It would always error, but when I added the -3

curl -v -3

in front bingo, it would work. It was causing an issue for one of my new applications. It needed to work. I thought maybe only sslv2 is supported. I googled high and low to try and find the solution. Then finally this evening I am sitting here watching a movie and I came cross the answer! had it, I needed to set my ServerName in my /etc/apache2/modules.d/40_mod_ssl.conf (I use Gentoo) then I changed ServerName from localhost to and bingo, good to go!

#ServerName localhost

The trick is to make sure that ServerName is the same as the Common Name (CN) on your ssl certificate.

I hope this helps and I thank the original blog I found!

Thanks for the read and I hope this helps you as well!


Leave a Reply

Your email address will not be published. Required fields are marked *