hyperium / tonic

A native gRPC client & server implementation with async/await support.
https://docs.rs/tonic
MIT License
9.32k stars 954 forks source link

feat(tls): Add ability to add multiple ca certificates #1724

Closed tottoto closed 2 weeks ago

tottoto commented 3 weeks ago

Resolves #1629.

tottoto commented 3 weeks ago

I would think that Certificate interface cannot be removed to support PEM encoded certificate file.

djc commented 3 weeks ago

Well, the caller would rely on rustls-pemfile so it's one less mandatory dependency to carry within tonic.

tottoto commented 3 weeks ago

Considering rustls-pemfile has major version release, I would think it would be acceptable to depend on the crate for the purpose of easiness to use.

tottoto commented 2 weeks ago

Added a method to add multiple ca certificates at once, which is useful when having some sets of certificates.