PHP CURL CURLOPT_SSL_VERIFYPEER ignored

前端 未结 2 474
伪装坚强ぢ
伪装坚强ぢ 2020-11-28 04:35

For some reason I am unable to use CURL with HTTPS. Everything was working fine untill I ran upgrade of curl libraries. Now I am experiencing this response when trying to pe

2条回答
  •  一个人的身影
    2020-11-28 04:54

    We had the same problem on a CentOS7 machine. Disabling the VERIFYHOST VERIFYPEER did not solve the problem, we did not have the cURL error anymore but the response still was invalid. Doing a wget to the same link as the cURL was doing also resulted in a certificate error.

    -> Our solution also was to reboot the VPS, this solved it and we were able to complete the request again.

    For us this seemed to be a memory corruption problem. Rebooting the VPS reloaded the libary in the memory again and now it works. So if the above solution from @clover does not work try to reboot your machine.

提交回复
热议问题