• curl: (51) Unable to communicate securely with peer: requested domain name does not match the server's certificate.报错


    [root@localhost ~]# curl https://pre.bjy****.com/wec****-server/
    curl: (51) Unable to communicate securely with peer: requested domain name does not match the server's certificate.

    curl https 网站 出现报错 

    解决办法:

    You can use the domain name as usual but override the resolver like so:

    curl -v --resolve subdomain.example.com:443:x.x.x.x https://subdomain.example.com/
    

    It might be awkward to maintain a lot of such mappings though. You might prefer to just ignore the cert mismatch:

    curl --insecure https://subdomain.example.com/
  • 相关阅读:
    Linux tmux 工具
    HTML 注释
    HTML 引用
    HTML 格式化
    /etc/services
    Linux ss 命令
    Python cookielib 模块
    爬取需要登录的页面
    hasattr() 、getattr() 、setattr()
    爬取文本
  • 原文地址:https://www.cnblogs.com/weifeng1463/p/8582921.html
Copyright © 2020-2023  润新知