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
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
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.
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives