I am trying to make a cURL HTTPS request to the Twitter API and I am getting this error:
[root@webscoming httpdocs]# curl -v https://api.twitter.com
About to connect() to api.twitter.com port 443 (#0)
Trying 199.16.156.199... connected
Connected to api.twitter.com (199.16.156.199) port 443 (#0)
Initializing NSS with certpath: sql:/etc/pki/nssdb
CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
NSS error -5990
Closing connection #0
SSL connect error
curl: (35) SSL connect error
I have tried this from another server and it works as expected. What does that error mean and how do I resolve it?
My server is running CentOS version 6.5.
Please note: I can correctly connect to https://encrypted.google.com
but unsuccessful with https://api.twitter.com
.