• 首页
  • 栏目
  • ERP
  • SSL certificate subject name does not match target host name

SSL certificate subject name does not match target host name

  • 2021-08-16
  • Admin

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

原文:https://blog.csdn.net/u013919153/article/details/119738284

联系站长

QQ:769220720