SSL certificate subject name does not match target host name
双向验证的时候验证host出现问题。
解决方法
在验证书配置忽略host验证。
以下是PHP中设置curl连接选项,其他语言类似。
$ch = curl_init();
...
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
...
- 1
- 2
- 3
- 4
双向验证的时候验证host出现问题。
在验证书配置忽略host验证。
以下是PHP中设置curl连接选项,其他语言类似。
$ch = curl_init();
...
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
...
原文:https://blog.csdn.net/u013919153/article/details/119738284
QQ:769220720