Python Requests throwing SSLError

前端 未结 24 2700
小蘑菇
小蘑菇 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:41

    In my case the reason was fairly trivial.

    I had known that the SSL verification had worked until a few days earlier, and was infact working on a different machine.

    My next step was to compare the certificate contents and size between the machine on which verification was working, and the one on which it was not.

    This quickly led to me determining that the Certificate on the 'incorrectly' working machine was not good, and once I replaced it with the 'good' cert, everything was fine.

提交回复
热议问题