Getting rid of

Denis McMahon denismfmcmahon at gmail.com
Sun Apr 12 20:54:05 CEST 2015


On Sun, 12 Apr 2015 19:48:53 +0200, Cecil Westerhof wrote:

> What should I do to get rid of the warnings:
>     /usr/lib/python2.7/site-packages/requests-2.6.0-py2.7.egg/requests/
packages/urllib3/connectionpool.py:769:
>     InsecureRequestWarning: Unverified HTTPS request is being made.
>     Adding certificate verification is strongly advised. See:
>     https://urllib3.readthedocs.org/en/latest/security.html
>       InsecureRequestWarning)

Have you checked that your certificates file exists? You can find the 
location using the python console:

$ python

>>> import certifi
>>> certifi.where()

'/usr/local/lib/python2.7/dist-packages/certifi/cacert.pem'

>>> exit()

And then check the location from the command line:

$ ls -l /usr/local/lib/python2.7/dist-packages/certifi/cacert.pem

-rw-r--r-- 1 root staff 315159 Apr 12 19:46 /usr/local/lib/python2.7/dist-
packages/certifi/cacert.pem

$ 

-- 
Denis McMahon, denismfmcmahon at gmail.com



More information about the Python-list mailing list