python: certificate verified failed

I was just trying to download a file on github (raw) using wget package (or curl) under Python2.7.11 and Windows 7. I got a certificate error as follows:

As an example, here is the code with a Python shell

This is not an issue with the tool wget since I got the same message in a windows shell with curl.

After quite a lot of time on stackoverflow and other resources, I finally found a solution on a github page (https://github.com/servo/servo/issues/5917). his may work for other systems so here is the solution that worked for me:

This entry was posted in Python and tagged , . Bookmark the permalink.

6 Responses to python: certificate verified failed

  1. Pingback: Quicky: If Python and OpenSSL hate each other – 0daylego

  2. Anonymous says:

    Thanks. Had a similar issue.

  3. Anonymous says:

    it worked!

  4. MRF says:

    Thanks. It worked.

  5. kodi says:

    Great & Thanks.

  6. Abe says:

    Many thanks, you saved my time

Leave a Reply

Your email address will not be published.