-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Unable to parse CA trust store PEM file of ubuntu #2125
Comments
Do you know @gibbz00? |
the rustls_pemfile::certs method inside it returns der encoded certificate so use correct certificate constructor for that. Signed-off-by: Frederic Martinsons <frederic.martinsons@unabiz.com>
I think the issue is the usage of from_pem methods since rustlfs_pemfile::certs that is used under the hood return der encoded certificates , not pem . I'll open a PR but maybe I misunderstood the usage of this method ( Edit: #2126 ) |
Hi, I'll take a look at this during the weekend. Quite busy with work right now, sorry :/ |
the rustls_pemfile::certs method inside it returns der encoded certificate so use correct certificate constructor for that. Signed-off-by: Frederic Martinsons <frederic.martinsons@unabiz.com>
@fmartinsons I saw your PR and you're right. My sincere apologies. I sent in a PR myself that but this time with a test too. Hope that's ok. #2129 |
Yep, that's ok. |
Awesome, thank you so much for reporting and solving this issue🤗 |
Hello,
I'm currently want to try the new API from_pem_bundle with the embedded ca store bundle on my ubuntu 22.04 (/etc/ssl/certs/ca-certificates.crt) but didn't manage to.
With this simple program (tested with reqwest 0.11.24)
I have
Openssl command manage to parse this bundle and find 137 certificates:
Do you know if this expected, am I missing some feature that must be enabled on the crate ?
The text was updated successfully, but these errors were encountered: