curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl, OpenSSL, and "result code 77, error setting certificate verify locations"

From: Patrick Middleton <pmiddleton_at_onestep.co.uk>
Date: Tue, 9 Jan 2018 09:58:16 +0000

On 09/01/2018, 03:38, "curl-library on behalf of Daniel Stenberg" <curl-library-bounces_at_cool.haxx.se on behalf of daniel_at_haxx.se> wrote:

    On Thu, 4 Jan 2018, Patrick Middleton wrote:
    
> The other day one of our applications stopped working at an awkward moment,
> reporting "result code 77, error setting certificate verify locations". We
> have seen this error from time to time (very rarely) since 2004. It's not
> anything to do with the file of PEM-encoded x509 certificates, the
> certificates, or the path to the file.
    
    The most common explanation for this error message is that the site you're
    communicating with fails to present an intermediary certificate in the TLS
    handshake. You can check this by entering the site in SSL labs test:
    https://www.ssllabs.com/ssltest/ as it will clearly indicate if this is the
    fact.
    
    --
    
      / daniel.haxx.se

That doesn't seem to be the case here. I checked the remote site's SSL installation using https://www.ssllabs.com/ssltest/ , which did not report missing intermediate certificates.

We started using libcurl in 2004 in order to connect to a particular payment card processing gateway, and that's still our primary use of libcurl 14 years later. What I saw a few years back, the last time this was a significant issue, was that one of our servers was rebooted, our apps restarted, and they immediately began reporting result code 77. We restarted the apps and the issue went away. When I encountered this problem again last month, an application was running and connecting successfully, then began reporting result code 77, until the application was restarted; other applications also connecting to the same site were unaffected.

I remain convinced this is a problem in OpenSSL, and it would help me to be able to get at the OpenSSL error stack.

Patrick Middleton
Senior Software Engineer
01702 426400

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-01-09