msg cURL error 60 SSL certificate problem unable to get local issuer certificate see httpscurlhaxxselibcurlclibcurl-errorshtml for httpsapiweixinqqcomcgi-bintokengrant_type=client_credential&appid=wxa
This error is related to SSL certificate verification. The server you are trying to connect to (api.weixin.qq.com) is using an SSL certificate issued by a certificate authority that is not recognized by your local system. This can happen if the certificate is self-signed or if the certificate chain is not complete.
To resolve this issue, you can try one of the following solutions:
-
Add the root certificate of the certificate authority that issued the server's SSL certificate to your local certificate store.
-
Disable SSL certificate verification in your cURL request by adding the following option:
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
Note that this option can make your connection less secure, so use it with caution.
-
Contact the server administrator or the certificate authority to obtain a valid SSL certificate that is recognized by your local system
原文地址: https://www.cveoy.top/t/topic/fseb 著作权归作者所有。请勿转载和采集!