警告:file_get_contents():SSL 操作失败,代码为 1。OpenSSL 错误消息:错误:1416F086:

时间:2021-05-21 18:42:28

标签: php wordpress

<块引用>

警告:file_get_contents():SSL 操作失败,代码为 1。OpenSSL 错误消息:错误:1416F086:SSL 例程:tls_process_server_certificate:C:\xampp\htdocs\Medicine\wp-content\plugins\medilazar-中的证书验证失败core\inc\class-import.php 第 187 行

<块引用>

警告:file_get_contents(): 无法在 C:\xampp\htdocs\Medicine\wp-content\plugins\medilazar-core\inc\class-import.php 第 187 行启用加密

<块引用>

警告:file_get_contents(https://localhost/Medicine/wp-content/plugins/medilazar-core/dummy-data/config.json):无法打开流:操作在 C:\xampp\htdocs\Medicine 中失败\wp-content\plugins\medilazar-core\inc\class-import.php 第 187 行

enter image description here

1 个答案:

答案 0 :(得分:0)

在禁用 SSL 验证的情况下使用 cURL 应该可以解决问题;

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
相关问题