Apache SSL And Facebook URL Linter CURL error
According to SSL Labs it's working properly:
According to SSL Shopper it's working properly:
According to openssl from the command line it's working properly:
PROMPT$ openssl s_client -connect survivehive.com:443
CONNECTED(00000003)
depth=3 C = SE, O = AddTrust AB, OU = AddTrust External TTP Network, CN = AddTrust External CA Root
verify error:num=19:self signed certificate in certificate chain
verify return:0
---
Certificate chain
0 s:/OU=Domain Control Validated/OU=PositiveSSL/CN=www.survivehive.com
i:/C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA Domain Validation Secure Server CA
1 s:/C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA Domain Validation Secure Server CA
i:/C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA Certification Authority
2 s:/C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA Certification Authority
i:/C=SE/O=AddTrust AB/OU=AddTrust External TTP Network/CN=AddTrust External CA Root
3 s:/C=SE/O=AddTrust AB/OU=AddTrust External TTP Network/CN=AddTrust External CA Root
i:/C=SE/O=AddTrust AB/OU=AddTrust External TTP Network/CN=AddTrust External CA Root
---
But yet when I use the Facebook URL Debugger:
> Curl Error : SSLCONNECTERROR error:1408F10B:SSL routines:SSL3GETRECORD:wrong version number
This results in blank content being shared from my site.
Is this a Facebook issue, or an issue on my part? Is there anything I can do about it aside from hope Facebook will fix it?
Thanks in advance for any insight!
9 Replies
- Les
- Les
IP survivehive.com
to:
IP www.survivehive.com
Now I no longer get "unknown protocol" when I run: curl
So there was some definite mis-configuration on my part.
Facebook still isn't playing well with me.
@hoopycat:
Umm, why do you have that in /etc/hosts at all? It exists in the DNS, so putting it in /etc/hosts can only lead to problems. (Such as this, perhaps.)
Because my interpretation of this guide told me to:
> Next, edit your /etc/hosts file to resemble the following example, replacing plato with your chosen hostname, example.com with your system’s domain name, and 12.34.56.78 with your system’s IP address. As with the hostname, the domain name part of your FQDN does not necesarily need to have any relationship to websites or other services hosted on the server (although it may if you wish). As an example, you might host “
/etc/hosts
127.0.0.1 localhost.localdomain localhost 12.34.56.78 plato.example.com plato
So therefore I have a line that is:
198.58.109.241 www.survivehive.com hivecore
One thing I do know, is that commenting that line out causes the following when I attempt to CURL the page:
curl: (35) error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
Which looks awfully familiar to what Facebook reports, yet still I haven't found any solution.
rtucker@racer-x:~$ curl https://www.survivehive.com/
curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Indeed…
rtucker@racer-x:~$ curl http://www.survivehive.com:443/
# It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
What's your web server configuration look like? I suspect you're hard-coding it to only do SSL on 198.58.109.241 instead of all IPv4 and IPv6 addresses…
@hoopycat:
What's your web server configuration look like? I suspect you're hard-coding it to only do SSL on 198.58.109.241 instead of all IPv4 and IPv6 addresses…
Well now I feel like a fool. You're absolutely correct! I had the full IP:443 as opposed to *:443
After making that change, removing the line from /etc/hosts, and restarting apache, everything has come together. curl works, AND Facebook is happy!
Thanks dude.. I've been pulling my hair out over this.