Remember a strange error reported by php curl

报错:Peer certificate cannot be authenticated with known CA certificates

But the url input into the browser can be correctly requested.

 

The solution is changed to the following:
CURLOPT_SSL_VERIFYPEER => false // CURL is forbidden to verify peer's certificate. Inconsistent server time on both sides may cause this problem

Guess you like

Origin blog.csdn.net/weixin_38230961/article/details/106470863