Python Requests throwing SSLError

前端 未结 24 3000
小蘑菇
小蘑菇 2020-11-22 02:49

I\'m working on a simple script that involves CAS, jspring security check, redirection, etc. I would like to use Kenneth Reitz\'s python requests because it\'s a great piec

24条回答
  •  天涯浪人
    2020-11-22 03:46

    After hours of debugging I could only get this to work using the following packages:

    requests[security]==2.7.0  # not 2.18.1
    cryptography==1.9  # not 2.0
    

    using OpenSSL 1.0.2g 1 Mar 2016

    Without these packages verify=False was not working.

    I hope this helps someone.

提交回复
热议问题