← Back to team overview

python-jenkins-developers team mailing list archive

[Bug 1677041] Re: SSL Certificate fails, no way to disable ssl verification or set trust

 

Hi. Any update on this? Still appears to be undecided and unassigned. It
would be nice to get an option like ssl_verify=False, similar to what
the other lib - jenkinsapi offers.

-- 
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:
  New

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


References