PYTHONHTTPSVERIFY is the only way to disable SSL and we will not implement any additional hacks related to broken SSL certificates in python-jenkins. If you are not pleased with that, feel free to raise bugs against python-requests or python itself, the python-jenkins library already did more than needed for accomodating broken SSL use- case.
-- You received this bug notification because you are a member of Python Jenkins Developers, which is subscribed to Python Jenkins. https://bugs.launchpad.net/bugs/1677041 Title: SSL Certificate fails, no way to disable ssl verification or set trust Status in Python Jenkins: Invalid Bug description: When using python-jenkins (with jenkins-job-wrecker) it does not seem possible to be able to disable SSL certificate verification or provide a CA bundle of trust. Due to the nature of my existing jenkins server and it's certificate, this is failing with the following: Traceback (most recent call last): File "/home/user/.local/bin/jjwrecker", line 11, in <module> sys.exit(main()) File "/home/user/.local/lib/python2.7/site-packages/jenkins_job_wrecker/cli.py", line 193, in main for job in server.get_jobs(): File "/home/user/.local/lib/python2.7/site-packages/jenkins/__init__.py", line 765, in get_jobs return self.get_all_jobs(folder_depth=folder_depth) File "/home/user/.local/lib/python2.7/site-packages/jenkins/__init__.py", line 814, in get_all_jobs jobs = [(0, "", self.get_info(query=JOBS_QUERY)['jobs'])] File "/home/user/.local/lib/python2.7/site-packages/jenkins/__init__.py", line 551, in get_info Request(self._build_url(url)) File "/home/user/.local/lib/python2.7/site-packages/jenkins/__init__.py", line 430, in jenkins_open self.maybe_add_crumb(req) File "/home/user/.local/lib/python2.7/site-packages/jenkins/__init__.py", line 303, in maybe_add_crumb self._build_url(CRUMB_URL)), add_crumb=False) File "/home/user/.local/lib/python2.7/site-packages/jenkins/__init__.py", line 461, in jenkins_open raise JenkinsException('Error in request: %s' % (e.reason)) jenkins.JenkinsException: Error in request: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) How do I disable certificate verify? Or even better, how do i pass a trusted certificate in? To manage notifications about this bug go to: https://bugs.launchpad.net/python-jenkins/+bug/1677041/+subscriptions -- Mailing list: https://launchpad.net/~python-jenkins-developers Post to : python-jenkins-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~python-jenkins-developers More help : https://help.launchpad.net/ListHelp