警告: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 行
答案 0 :(得分:0)
在禁用 SSL 验证的情况下使用 cURL 应该可以解决问题;
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);