PHP:
print_r(get_headers('https://www.ryongyon.com'));
出错信息:
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /www/wwwroot/studio.ryongyon.com/1.php on line 5
Warning: get_headers(): Failed to enable crypto in /www/wwwroot/studio.ryongyon.com/1.php on line 5
Warning: get_headers(https://www.ryongyon.com): failed to open stream: operation failed in /www/wwwroot/studio.ryongyon.com/1.php on line 5
同样的代码在另一台VPS上就正常,那一台VPS也安装了最新的宝塔面板,分别
openssl version
nginx -V
看了一下,OpenSSL版本都是一致的OpenSSL 1.0.2k,可是那一台VPS就没有任何问题。 |