SSL error(35) when trying to communicate with ZoHo using cURL
I am trying to simply communicate from my server to ZoHo API, but I cannot successfully complete the SSL handshake in order to insert new records. If I run
- curl -v https://accounts.zoho.com/apiauthtoken/nb/create?SCOPE=ZohoCRM/crmapi&EMAIL_ID=[username]&PASSWORD=[Password]
Then I get the following output:
- [1] 29707
- [2] 29708
- [ravi@server ~]$ * About to connect() to accounts.zoho.com port 443 (#0)
- * Trying 74.201.154.199... connected
- * Connected to accounts.zoho.com (74.201.154.199) port 443 (#0)
- * Initializing NSS with certpath: sql:/etc/pki/nssdb
- * CAfile: /etc/pki/tls/certs/ca-bundle.crt
- CApath: none
- * NSS error -12286
- * Error in TLS handshake, trying SSLv3...
- > GET /apiauthtoken/nb/create?SCOPE=ZohoCRM/crmapi HTTP/1.1
- > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.1.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2
- > Host: accounts.zoho.com
- > Accept: */*
- >
- * Connection died, retrying a fresh connect
- * Closing connection #0
- * Issue another request to this URL: 'https://accounts.zoho.com/apiauthtoken/nb/create?SCOPE=ZohoCRM/crmapi'
- * About to connect() to accounts.zoho.com port 443 (#0)
- * Trying 74.201.154.199... connected
- * Connected to accounts.zoho.com (74.201.154.199) port 443 (#0)
- * TLS disabled due to previous handshake failure
- * CAfile: /etc/pki/tls/certs/ca-bundle.crt
- CApath: none
- * NSS error -12286
- * Closing connection #0
- * SSL connect error
- curl: (35) SSL connect error
If I specify the certificate as gd-bundle.crt, which it should be, same thing:
- ravi@server ~]$ curl -v --cacert /etc/pki/tls/certs/gd_bundle.crt https://accounts.zoho.com/apiauthtoken/nb/create?SCOPE=ZohoCRM/crmapi&EMAIL_ID=[Username]&PASSWORD=[password]
- [1] 29800
- [2] 29801
- [ravi@server ~]$ * About to connect() to accounts.zoho.com port 443 (#0)
- * Trying 74.201.154.199... connected
- * Connected to accounts.zoho.com (74.201.154.199) port 443 (#0)
- * Initializing NSS with certpath: sql:/etc/pki/nssdb
- * CAfile: /etc/pki/tls/certs/gd_bundle.crt
- CApath: none
- * NSS error -12286
- * Error in TLS handshake, trying SSLv3...
- > GET /apiauthtoken/nb/create?SCOPE=ZohoCRM/crmapi HTTP/1.1
- > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.1.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2
- > Host: accounts.zoho.com
- > Accept: */*
- >
- * Connection died, retrying a fresh connect
- * Closing connection #0
- * Issue another request to this URL: 'https://accounts.zoho.com/apiauthtoken/nb/create?SCOPE=ZohoCRM/crmapi'
- * About to connect() to accounts.zoho.com port 443 (#0)
- * Trying 74.201.154.199... connected
- * Connected to accounts.zoho.com (74.201.154.199) port 443 (#0)
- * TLS disabled due to previous handshake failure
- * CAfile: /etc/pki/tls/certs/gd_bundle.crt
- CApath: none
- * NSS error -12286
- * Closing connection #0
- * SSL connect error
- curl: (35) SSL connect error
I have an SSL through GoDaddy.
Thank you