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

[feature] allow specification of the CA bundle via environment variable #925

Closed
racinmat opened this issue Sep 13, 2022 · 1 comment · Fixed by #933
Closed

[feature] allow specification of the CA bundle via environment variable #925

racinmat opened this issue Sep 13, 2022 · 1 comment · Fixed by #933

Comments

@racinmat
Copy link
Contributor

It would be useful to support global settings for the CA bundle in similar manner as e.g. python requests have it https://requests.readthedocs.io/en/latest/user/advanced/?highlight=REQUESTS_CA_BUNDLE#ssl-cert-verification using also the CURL_CA_BUNDLE env var would make it easier for other people who are dealing with CA bundles in other systems or languages.

I know now it can be done using

conf = SSLConfig()
MbedTLS.ca_chain!(conf, MbedTLS.crt_parse(cert_file))

or

HTTP.ConnectionPool.default_sslconfig = SSLConfig(...)

but it would be useful to have option which would not need code change.

@quinnj
Copy link
Member

quinnj commented Oct 7, 2022

Sorry for the slowness; implemented in #933

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

Successfully merging a pull request may close this issue.

2 participants