jssimporter / python-jss

python-jss is deprecated. Please see the wiki for alternatives.
GNU General Public License v3.0
102 stars 41 forks source link

InsecureRequestWarning #23

Closed Tecnico1931 closed 9 years ago

Tecnico1931 commented 9 years ago

/Library/Python/2.7/site-packages/python_jss-0.5.3-py2.7.egg/jss/contrib/requests/packages/urllib3/connectionpool.py:734: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html InsecureRequestWarning)

sheagcraig commented 9 years ago

Hey @Tecnico1931, So that warning should display anytime you make a request of an HTTPS JSS with the SSL verification turned off. Potentially, this can be a LOT of requests.

I added a configuration option to suppress these warnings to both python-jss (https://github.com/sheagcraig/python-jss/wiki/Notes%3A-SSL%2C-TLS%2C-SNI%2C-Binary-plists%2C-Etc#ssltls-errors) and JSSImporter.

Give that a shot and let me know how it goes.

sheagcraig commented 9 years ago

Assuming this is good now.