SimpleDao

django-cas或其它python程序,出现错误 CERTIFICATE_VERIFY_FAILED

  1. SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
  2. # 增加代码,不检验自签名证书
  3. import ssl
  4. ssl._create_default_https_context = ssl._create_unverified_context