PHP验证失败,并带有LetsEncrypt [英] PHP verify failed with LetsEncrypt
本文介绍了PHP验证失败,并带有LetsEncrypt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试读取流时出现问题:
Having an issue when trying to read a stream :
$result = file_get_contents($url, false, stream_context_create(
['http' => ['timeout' => (float) $this->options['timeout']]]
));
SSL操作失败,代码为1.OpenSSL错误消息:
SSL operation failed with code 1. OpenSSL Error messages:
错误:14090086:SSL例程:ssl3_get_server_certificate:证书验证失败
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
在任何人回答我都不会做之前
Before anyone answers i am not going to do
"ssl"=>array(
"verify_peer"=>false,
"verify_peer_name"=>false,
),
我希望其他人使用过letencrypt,并提供了一些适当的方法来确保其经过验证.
Am hoping someone else has used letsencrypt and has some proper way of making sure its validated.
随时可以在我的域lukepolo.com
推荐答案
openssl.cafile = curl.cainfo =
openssl.cafile= curl.cainfo=
在您的php.ini中,您同时需要两者
in your php.ini , you need both
这篇关于PHP验证失败,并带有LetsEncrypt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文