In the process of using laravel, there is always an error when calling an interface. dd sees this error. cURL error 60: SSL certificate problem: unable to get local issuer certificate
By default, cURL is not trusted by any CAS. There is a problem with the CA certificate. Here are the steps to solve it:
1. Download cacert.pem
Enter the official website and download the latest version (the external network may load slowly)
2. Put it in extras/ssl under the php file
3. Configure php.ini
Configure the path of curl.cainfo and openssl.cafile as the download location of the above pem file, pay attention to ;
remove the comment, otherwise it will not take effect