curl -v -k -I -H “Host:www.domain_name.com” https://ip:port/url
参数解释:
curl –help
-v: verbose 详细信息
-k: 不验证证书
-I:只显示头信息
-H:发送的Header
curl -v -k -I -H “Host:www.domain_name.com” https://ip:port/url
参数解释:
curl –help
-v: verbose 详细信息
-k: 不验证证书
-I:只显示头信息
-H:发送的Header
phpcms的phpsso,在https情况下,代码file_get_contents(“https://…….”);出现错误
file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed ,
在phpcms的phpsso_server/phpcms/modules/admin/applications.php 的check_status函数里面
需要修改为
$arrContextOptions=array(
"ssl"=>array(
"verify_peer"=>false,
"verify_peer_name"=>false,
),
);
if ($data = file_get_contents($url.'code='.urlencode($param),false,stream_context_create($arrContextOptions))) {