-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
feat(conf): use openssl to detect system ca-certs path #10788
base: master
Are you sure you want to change the base?
Conversation
e488917
to
f3bb0b2
Compare
f3bb0b2
to
264ef88
Compare
Alternatively we could make |
264ef88
to
7ef0fea
Compare
7ef0fea
to
8ef2523
Compare
8ef2523
to
a7696c3
Compare
a7696c3
to
b02faf3
Compare
for _, cert_dir in ipairs(cert_dirs) do | ||
for _, cert_file in ipairs(cert_files) do | ||
local ca_file = pl_path.join(openssl_dir, cert_dir, cert_file) | ||
if pl_path.exists(ca_file) then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this logic will seldomly get picked up because we ships our own openssl library, and its OPENSSL_DIR is not same as the system openssl dir, which usually doesn't contain the ca file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we install root certs then too? Or symlink?
At some point I thought about just downloading this: https://curl.se/docs/caextract.html
### Summary Previously the code ran through these paths: - "/etc/ssl/certs/ca-certificates.crt", -- Debian/Ubuntu/Gentoo - "/etc/pki/tls/certs/ca-bundle.crt", -- Fedora/RHEL 6 - "/etc/ssl/ca-bundle.pem", -- OpenSUSE - "/etc/pki/tls/cacert.pem", -- OpenELEC - "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem", -- CentOS/RHEL 7 - "/etc/ssl/cert.pem", -- OpenBSD, Alpine when trying to find system ca-file. The commit here asks `openssl` about it and tries from there first. Signed-off-by: Aapo Talvensaari <aapo.talvensaari@gmail.com>
b02faf3
to
6b86195
Compare
Summary
Previously the code ran through these paths:
when trying to find system ca-file.
The commit here asks
openssl
about it and tries from there first.