Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support custom list of SSL CAs #30

Open
okhoma opened this issue May 31, 2019 · 0 comments
Open

Support custom list of SSL CAs #30

okhoma opened this issue May 31, 2019 · 0 comments

Comments

@okhoma
Copy link

okhoma commented May 31, 2019

Beyond corporate firewall it is sometimes needed to provide a list of additional certification authorities:

https://docs.python.org/3/library/urllib.request.html#urllib.request.urlopen

urllib.request.urlopen(url, data=None, [timeout, ]*, cafile=None, capath=None, cadefault=False, context=None)
...
The optional cafile and capath parameters specify a set of trusted CA certificates for HTTPS requests. cafile should point to a single file containing a bundle of CA certificates, whereas capath should point to a directory of hashed certificate files. More information can be found in ssl.SSLContext.load_verify_locations().

Add support for cafile and capath parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants