Skip to content
This repository was archived by the owner on Sep 26, 2019. It is now read-only.

Add support for passing SSL context to urllib - #2

Closed
JoakimSoderberg wants to merge 1 commit into
openstack-archive:masterfrom
JoakimSoderberg:urllib_ssl_context_support
Closed

Add support for passing SSL context to urllib#2
JoakimSoderberg wants to merge 1 commit into
openstack-archive:masterfrom
JoakimSoderberg:urllib_ssl_context_support

Conversation

@JoakimSoderberg

Copy link
Copy Markdown

This can be useful when testing towards a Jenkins instance with a selfsigned SSL certificate.

Specifically I would like to add a command line option --no-check-certificate to jenkins-job-builder just like tools like curl / wget has.

This would then be used like this to turn off the verification of the certificate:

ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE

server = jenkins.Jenkins('https://jenkins.local', ssl_context=ctx)

This can be useful when testing towards a Jenkins instance with a
selfsigned SSL certificate
@openstack-gerrit

Copy link
Copy Markdown

Thank you for contributing to openstack/python-jenkins!

openstack/python-jenkins uses Gerrit for code review.

If you have never contributed to OpenStack before make sure you have read the
getting started documentation:
http://docs.openstack.org/infra/manual/developers.html#getting-started

Otherwise please visit
http://docs.openstack.org/infra/manual/developers.html#development-workflow
and follow the instructions there to upload your change to Gerrit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants