If you want to verify the certificate, you should use the root certificates as in your question, however, you said you work with WAMP so the path to your cafile should be something like:"cafile" => "c:/wamp/certificates/cacert.pem",如果您不需要代理,请从请求中删除.If you don't need the proxy just remove if from your request. 这篇关于file_get_contents():SSL操作失败,代码为1(证书验证失败)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 07-30 05:56