-
Notifications
You must be signed in to change notification settings - Fork 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
feat(tls): Use rustls_pki_types::CertificateDer to describe DER encoded certificate #1707
Conversation
So I'm guessing the name is inspired by @LucioFranco I'm biased here because I created rustls-pki-types -- what do you think? It's basically a collection of very lightweight wrappers for |
bd18029
to
a7f31b0
Compare
Yes. introduced |
Added a commit to show how the implementation would be when using |
fdf9608
to
8b5cbf9
Compare
8b5cbf9
to
0e8c2d1
Compare
LGTM. I think the same reasoning as in #1710 should apply here: rustls-pki-types is expected to have a more stable API than tonic so it should be okay to use rustls-pki-types API in the public tonic API. |
Updated this pull request title to reflect the latest status. |
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.
Using a 1.0 crate API seems fine to me.
Motivation
Although
Certificate
is for PEM encoded certificate, it is used byRequest::peer_certs
's return type, which is DER encoded certificate.Solution
Adds
CertificateDer
type and changesRequest::peer_certs
to use it.This is a breaking change.