SSL certificate issue

Our code throws and exception when trying to call Smartsheet API:
SSL Exception: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
The Rest Client has a logic to verify certificate using the windows system certificate store . It looks to me the CA certificate for Smarthsheet API is not available in the truststore.
My question is: where can I download the root/intermediate CA certificate for Smartsheet API so that I can import them into the truststore?
Or am I looking at wrong direction?
Answers
-
Hi @dongluo
In doing a quick search of the StackOverflow community, other users have said that the most common cause of this error is an out of sync date/time. They suggested to check what your machine's local time is and use commands like ntp or chrony to sync your time. (See this post).
There's also another post here that may help: Smartsheet - An error occurred during SSL handshake
Please note that Smartsheet doesn't support self-signed certificates, it must be signed by a third party CA (see the Note in this section of the API documentation).
Cheers,
Genevieve
-
Hi @Genevieve P. ,
Yes, I did read that StackOverflow post. The date/time on the machine looks good to me.
Anyway, my colleague managed to find the required root and intermediate CAs and imported them into Windows trust store. Our code is working now.
-
Thanks for letting me know! I'm glad you were able to get your code working.