-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Fix: Load system-wide native cert on rustls #1589
Conversation
Signed-off-by: Jiahao XU <[email protected]>
@arvid-norlander This PR might fix the issue you experienced. It now enables [
"/var/ssl",
"/usr/share/ssl",
"/usr/local/ssl",
"/usr/local/openssl",
"/usr/local/etc/openssl",
"/usr/local/share",
"/usr/lib/ssl",
"/usr/ssl",
"/etc/openssl",
"/etc/pki/ca-trust/extracted/pem",
"/etc/pki/tls",
"/etc/ssl",
"/etc/certs",
"/opt/etc/ssl", // Entware
"/data/data/com.termux/files/usr/etc/tls",
"/boot/system/data/ssl",
] And also checks environment variables: /// The OpenSSL environment variable to configure what certificate file to use.
pub const ENV_CERT_FILE: &'static str = "SSL_CERT_FILE";
/// The OpenSSL environment variable to configure what certificates directory to use.
pub const ENV_CERT_DIR: &'static str = "SSL_CERT_DIR"; While it still doesn't seem to check the If it doesn't, I will add reading from |
Signed-off-by: Jiahao XU <[email protected]>
Oh it should fix the issue for you - Since @arvid-norlander can you try this PR locally please? |
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.
wasn't aware you could set both those features, good to know
Hi, today I'm at the office (behind the corporate proxy) so I gave this a try (even though you merged it already?). It seems to work from a brief test ( |
@arvid-norlander Thank you, I will cut a new release this Sunday. P.S. regarding the merge before testing, I was confident that this PR would fix many use cases of binstall, so I would like to merge it. Has it turned out not working, I will continue investigating and create another PR at fixing the issue. |
Related: nabijaczleweli/cargo-update#250