Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
with_native_roots: Restore robustness to unparseable certs
rustls-native-certs used to filter out invalid certs on Unix, where certs are parsed from PEM files. rustls/rustls-native-certs#26 changed it to passing them unparsed. Now that hyper-rustls does the parsing, keep being robust to invalid certs. Implementation modified from rustls::RootCertStore::add_parsable_certificates, which cannot be used directly due to a newtype in rustls-native-certs.
- Loading branch information