I've started getting this on Hetzner today too. It's affected all outgoing HTTP requests that use Guzzle in the background. Exploring this now.
cURL error 60: SSL: no alternative certificate subject name matches target host name 'oauth2.googleapis.com'
Hi,
I'm running a live app on forge/hetzner. it was working fine till today, my app runs every five minutes a command which syncs google calendar events to my app. Since morning i'm getting the following error:
cURL error 60: SSL: no alternative certificate subject name matches target host name 'oauth2.googleapis.com'
i've searched on google and tried following:
- downloaded cacert.pem file
- placed it in "/etc/nginx/ssl/app.mysite.be/1754848"
- edited php.ini file
[curl] ; A default value for the CURLOPT_CAINFO option. This is required to be an ; absolute path. curl.cainfo = "/etc/nginx/ssl/app.mysite.be/1754848/cacert.pem"
- restarted server
- ive printed phpinfo() and made sure CURLOPT_CAINFO was loaded
since it's a live app i don't want to disable any checks/verifying..
kind regards,
Askin
You should be able to fix this by installing running the following command:
sudo apt update
sudo apt install libcurl4-openssl-dev
Please or to participate in this conversation.