Home of a code hacker, not a real hacker.

Powered by Genesis

Finally figured out our curl issue

February 5, 2016 by whit 351 Commenthttps%3A%2F%2Fwhittlecorn.com%2F2016%2F02%2F05%2Ffinally-figured-out-our-curl-issue%2FFinally+figured+out+our+curl+issue2016-02-05+17%3A01%3A51whithttp%3A%2F%2Fwhittlecorn.com%2F%3Fp%3D35

We have spent days working on an issue where when we curl’d our sites we were getting the error

SL read: error:00000000:lib(0):func(0):reason(0), errno 104

Cert was ok but Curl could not touch the site…

Found out it was due to a misconfiguration in NGINX.

For you that care and find this, to fix make sure when you define a server to use 443 and a cert that you define all of it’s config option.

For example we were missing

ssl_protocols TLSv1.2 TLSv1.1 TLSv1;

That’s silly you should have that defined… We did in our default and we assumed that the site would inherit this.

A little know fact is that NGINX will allow inherit if you don’t redefine the cert so we took out the redefined cert (because it was the same as the default) and voila! the error was gone.

Hope this helps someone.

Whitt

Filed Under: nginx, Server Tagged With: curl, ssl

Leave a Reply Cancel reply

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