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

openssl 'Hashed Directory Method' not supported #9

Closed
harmic opened this issue Jun 1, 2020 · 6 comments
Closed

openssl 'Hashed Directory Method' not supported #9

harmic opened this issue Jun 1, 2020 · 6 comments

Comments

@harmic
Copy link

harmic commented Jun 1, 2020

In addition to loading CA bundles, openssl also supports a Hashed Directory Method - with this method, openssl looks in the CA Directory for a file named after the hash of the desired certificate, with a '.{digit}' on the end.

In corp environments this can be used to install locally trusted certificates, without disturbing the vendor supplied bundle.

Maybe it's not possible to support this scheme via rustls, as you would need to by able to look up certificates in the root store dynamically - the rusttls api does not look like it supports that - but if that is the case it should be documented in the README (especially since the rationale given for using this package is to support locally installed trusted CAs).

@ctz
Copy link
Member

ctz commented Jun 21, 2020

This is likely a feature request on the openssl-probe crate

@harmic
Copy link
Author

harmic commented Jul 2, 2020

That crate seems purely about locating the correct directory(s) in which to look, it does not actually locate certificates inside those directories. Also openssl-probe is used by other crates that use openssl (eg. native-tls, curl, git2-rs, etc) that would not need this functionality.

This seems rustls specific, in that this crate is trying to help rustls have the same behavior as the native alternative when it comes to locating trusted certificates.

@ctz
Copy link
Member

ctz commented Jul 5, 2020

Ah, yes, you're right. openssl-probe does actually support this already; since it returns both the bundle file and also the directory to look in. So I'll plan to get this done.

@cpu
Copy link
Member

cpu commented Mar 31, 2023

Has this been addressed by #32 or is there additional work required?

@pgerber
Copy link
Contributor

pgerber commented Jun 14, 2024

I opened a related pull request, See #109, and discussion on #28.

@cpu
Copy link
Member

cpu commented Jul 30, 2024

I believe we can consider this resolved with #109 and 0.7.1

@cpu cpu closed this as completed Jul 30, 2024
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

No branches or pull requests

4 participants