I'm trying to connect the google/apiclient to my web application. I'm using it to allow members to sign in with their Google accounts. So far, I can reach the Request for Permission Google page where Google asks the user if they will allow their information to be shared with my application. When I click on the allow button, The following happens
I've researched extensively and I've found several posts that suggest that this problem shows up when your CA root certificates are missing or out-of-date. The proposed solution is to:
Following those instructions seems to work for other developers but my error does not disappear. Are there other settings that need to be updated or changed? What else can I do? Where did I go wrong?
The correct answer is indeed to download the cacert.pem file and update the php.ini files as suggested by Morfinismo.
But even after that the error did not disappear. The trick was getting a clean copy of the PEM file! Any method involving windows notepad or other editors corrupts the file and gives the cURL error 60 etc. Finally, I found https://gist.github.com/VersatilityWerks/5719158/download and downloaded a tar file with a clean copy of the cacert.pem file ...... it then all worked perfectly.
I also made the following changes in WAMP SERVER:
Hope this saves others time.