-
Notifications
You must be signed in to change notification settings - Fork 291
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
SSL_CERT_FILE environment variable is not honoured #369
Comments
Preliminary patch mikz@3298246 |
been hit by this too, any chance it can be reviewed? |
In case somebody spent last 3 hours tracing SSL errors down to this issue, here is workaround which works for me:
|
We are running with master...mikz:ssl-env-cert and it works just fine. And set the That is just a terrible workaround and would be way better for httpclient to use OpenSSL cert store it was compiled with. |
Fixed by #386 |
Workaround for httpclient issue: nahi/httpclient/issues/369
any updates on this? |
OpenSSL says SSL_CERT_FILE and SSL_CERT_DIR environment variables can be used to set default location for certificate fails. HTTPClient ignores this setting.
Net::HTTP respects that setting.
HTTPClient does not.
There is no system-wide way of configuring HTTPClient to use default system store and has to be initialised on per instance basis as described in #335.
Also, the bundle cacert.pem is almost 2 years old missing several important updates.
I think HTTPClient should not default to own bundled CA certificates if system provides that. That might be broken on Windows, but this breaks it on every other UNIX platform.
The text was updated successfully, but these errors were encountered: