CertificateError: hostname doesn't match

前端 未结 3 1377
一向
一向 2021-02-13 05:50

I\'m using a proxy (behind corporate firewall), to login to an https domain. The SSL handshake doesn\'t seem to be going well:

CertificateError: hostname \'ats.f         


        
3条回答
  •  旧时难觅i
    2021-02-13 06:38

    You can avoid this error by monkey patching ssl:

    import ssl
    ssl.match_hostname = lambda cert, hostname: True
    

提交回复
热议问题