解决方案:

My evil workaround (don't do this in production!):

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
import urllib2  #也可以是urllib
import ssl

ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE

urllib2.urlopen("https://your-test-server.local", context=ctx)

  

According to docs calling SSLContext constructor directly should work, too. I haven't tried that.

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄