- 首先在 https://curl.haxx.se/docs/caextract.html 下载最新的 cacert.pem
- 将下载好的cacert.pem 放置到你的 php 目录下,如:E:\phpstudy_pro\Extensions\php\php7.2.9nts\extras\ssl
- 打开 php.ini 找到 curl.cainfo 以及 openssl.cafile 去除前面的 ; 号,将值设置如下:
curl.cainfo ="E:\phpstudy_pro\Extensions\php\php7.2.9nts\extras\ssl\cacert-2020-01-01.pem
“
openssl.cafile="E:\phpstudy_pro\Extensions\php\php7.2.9nts\extras\ssl\cacert-2020-01-01.pem"
- 重启服务器。
(adsbygoogle = window.adsbygoogle || []).push({});
来源:https://www.02405.com/archives/6658
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_6626.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57