curl fails with "NSS error -5961" and "curl: (35) SSL connect error" on retrieving a https URL
Issue
- A verbose curl to a https URL shows the below:
[root@hostname ~]# curl -v https://example.com/test.txt
* About to connect() to example.com port 443 (#0)
* Trying 192.168.5.5... connected
* Connected to example.com (192.168.5.5) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* NSS error -5961
* Closing connection #0
* SSL connect error
curl: (35) SSL connect error
Environment
- Red Hat Enterprise Linux 6.X
- Red Hat Enterprise Linux 7.X
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
