使用LetsEncrypt进行PHP验证失败

Luk*_*OLO 5 php ubuntu ssl openssl ssl-certificate

尝试读取流时遇到问题:

$result = file_get_contents($url, false, stream_context_create(
    ['http' => ['timeout' => (float) $this->options['timeout']]]
));
Run Code Online (Sandbox Code Playgroud)

SSL操作失败,代码为1. OpenSSL错误消息:

错误:14090086:SSL例程:ssl3_get_server_certificate:证书验证失败

在任何人回答之前我不会这样做

 "ssl"=>array(
        "verify_peer"=>false,
        "verify_peer_name"=>false,
    ),
Run Code Online (Sandbox Code Playgroud)

我希望其他人使用letsencrypt,并有一些正确的方法来确保其验证.

随便在我的域名上查看我的证书 lukepolo.com

Luk*_*OLO 3

openssl.cafile=curl.cainfo=

在你的 php.ini 中,你需要两者

  • 我完全清楚这一点。但我指向哪个证书? (2认同)