PHP curl报错:php curl: (60) SSL certificate problem: unable to get local issuer certificate

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

Published 103 original articles · won praise 167 · views 180 000 +

Guess you like

Origin blog.csdn.net/msllws/article/details/104102244