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

Add Certificate::from_rustls() #1844

Closed
wants to merge 1 commit into from

Conversation

daxpedda
Copy link
Contributor

Introducing a new method to Certificate: from_rustls(). This allows adding OwnedTrustAnchor directly, for example from webpki-roots.

Certificates added through this method will be ignored on native-tls clients.

Fixes #1843.

@seanmonstar
Copy link
Owner

It's currently by-design that we don't expose publicly either native-tls or rustls types in the API, so we can upgrade to new versions internally without that being "breaking changes".

@daxpedda
Copy link
Contributor Author

Right, I didn't consider this, I guess I could replicate the interface of OwnedTrustAnchor::from_subject_spki_name_constraints?

@daxpedda
Copy link
Contributor Author

CI fails because some MSRV issue with base64, unrelated to this PR.

@daxpedda
Copy link
Contributor Author

daxpedda commented Apr 2, 2024

#1843 was addressed by #2232.

@daxpedda daxpedda closed this Apr 2, 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

Successfully merging this pull request may close these issues.

Only use webpki certs despite enabled rustls-tls-native-roots feature
2 participants