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

Use operating system certificates #80

Closed
t-8ch opened this issue Jul 28, 2012 · 1 comment
Closed

Use operating system certificates #80

t-8ch opened this issue Jul 28, 2012 · 1 comment
Labels
enhancement New feature or enhancement planned Solution is being worked on

Comments

@t-8ch
Copy link

t-8ch commented Jul 28, 2012

It would be nice if httpie used the ssl configuration already present on the system.

One can pass a filesystempath as verify parameter to requests.request() (used in httpie/core.py:73)
This is then used to check certificates.
There is the function requests.utils.get_os_ca_bundle() which returns a suitable path (at least on UNIX)

@jkbrzt
Copy link
Member

jkbrzt commented Aug 7, 2012

It looks like Requests defaults to the bundle that comes with certify, when it is installed (which is by default).

It's not optimal, but for now you should be able to overwrite it by setting the environment variable REQUESTS_CA_BUNDLE with the path of the system one.

@t-8ch t-8ch closed this as completed Jan 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement planned Solution is being worked on
Projects
None yet
Development

No branches or pull requests

2 participants