Environment: Windows phpStudy
The reason: lack of security certificates
solve:
1. Download the certificate: https://curl.haxx.se/ca/cacert.pem
2. Modify the php.ini configuration, adding certificate configuration, the absolute path is as follows:
curl.cainfo = "D:\phpstudy_pro\Extensions\php\php7.3.4nts\extras\ssl\cacert.pem"
3. Restart php