当试图读取流时有问题:
$result = file_get_contents($url, false, stream_context_create(
['http' => ['timeout' => (float) $this->options['timeout']]]
));代码1的SSL操作失败。OpenSSL错误消息: 错误:14090086:SSL routines:ssl3_get_server_certificate:certificate验证失败
在别人回答之前,我不会做的
"ssl"=>array(
"verify_peer"=>false,
"verify_peer_name"=>false,
),我希望其他人已经使用了让加密,并有一些适当的方式,以确保其有效性。
请随时检查我在域lukepolo.com上的证书
发布于 2016-01-21 19:45:01
openssl.cafile= curl.cainfo=
在你的php.ini中,你需要两者
发布于 2015-12-29 16:42:07
您可能需要安装CA证书(此页面有下载CA文件的链接。)。您可能需要尝试每一个不同的签名,以使它的工作。获取PEM版本并将其保存到服务器,然后按如下方式更改代码
$result = file_get_contents($url, false, stream_context_create(
[
'http' => ['timeout' => (float) $this->options['timeout']],
'ssl' => ['cafile' => '/path/to/file.pem']
]
));https://stackoverflow.com/questions/34515120
复制相似问题