更新时间:2022-01-25 08:41:10
I solved this by downloading cacert.pem
from this site https://curl.haxx.se/docs/caextract.html into my C:\xampp\php
directory. I then uncommented/edited these lines in my php.ini file
curl.cainfo = "C:\xampp\php\cacert.pem"
openssl.cafile="C:\xampp\php\cacert.pem"