cURL error 60: SSL certificate problem: unable to get local issuer certificate

使用第三方登录登录网站,登录后,显示 Whoops, looks like something went wrong.

将.env文件中的APP_DEBUG=false改为APP_DEBUG=true

cURL error 60: SSL certificate problem: unable to get local issuer certificate_第1张图片

此时,显示  cURL error 60: SSL certificate problem: unable to get local issuer certificate

解决办法:

登录https://curl.haxx.se/docs/caextract.html,下载cacert.pem

并在php.ini文件添加文件所在的位置,即可成功登录。

curl.cainfo="D:\phpStudy\PHPTutorial\WWW\topinland\cacert.pem"
openssl.cafile="D:\phpStudy\PHPTutorial\WWW\topinland\cacert.pem"


你可能感兴趣的:(PHP)