SSL certificate subject name does not match target host name

青旅半醒 2022-09-05 01:55 300阅读 0赞

SSL certificate subject name does not match target host name

双向验证的时候验证host出现问题。

解决方法

在验证书配置忽略host验证。
以下是PHP中设置curl连接选项,其他语言类似。

  1. $ch = curl_init();
  2. ...
  3. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  4. ...

发表评论

表情:
评论列表 (有 0 条评论,300人围观)

还没有评论,来说两句吧...

相关阅读