rikas / zoho_hub

Zoho CRM API V2 Wrapper
MIT License
25 stars 30 forks source link

SSL cert expired error #80

Closed bcwik9 closed 1 year ago

bcwik9 commented 1 year ago

We started getting an issue on September 12 with our zoho calls, specifically on our EC2 servers that are managed through AWS Beanstalk. We are making a basic call (ie. Zoho::Deal.find <DEAL_ID>, but we are receiving an error:

SSL_connect returned=1 errno=0 state=error: certificate verify failed (certificate has expired)

We also run generic EC2 servers (running the same codebase) that are NOT managed through beanstalk, and do not have a problem (ie. running Zoho::Deal.find <DEAL_ID> returns the deal information correctly).

The EC2 servers have not been updated in some time, so I'm not entirely sure what is going on here. I never installed any SSL certificates on the EC2 servers where it's working, nor on the Beanstalk EC2 servers directly (they run behind a load balancer with a valid, up-to-date SSL cert for web traffic which currently loads the front end without any SSL errors).

Our regular EC2 servers (non Beanstalk managed) run Ubuntu, and the Beanstalk servers are running Amazon Linux.

Has anyone else experienced this issue before?

bcwik9 commented 1 year ago

It turns out we had long running Beanstalk EC2 servers. We had to update the certificates on those servers, and our queries to Zoho started working again. Solution was found at https://repost.aws/knowledge-center/ec2-expired-certificate