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
I ran into the same issue. Turns out I hadn't installed the intermediate certificate on my server (just append it to the bottom of your certificate as seen below).
https://www.digicert.com/ssl-support/pem-ssl-creation.htm
Make sure you have the ca-certificates package installed:
sudo apt-get install ca-certificates
Updating the time may also resolve this:
sudo apt-get install ntpdate
sudo ntpdate -u ntp.ubuntu.com
If you're using a self-signed certificate, you'll probably have to add it to your system manually.