tonic icon indicating copy to clipboard operation
tonic copied to clipboard

feat(tls): Add rustls-platform-verifier support

Open tottoto opened this issue 1 year ago • 3 comments

Adds rustls-platform-verifier support.

tottoto avatar Oct 05 '24 08:10 tottoto

These are needed for macos and windows.

https://github.com/rustls/rustls-platform-verifier/pull/133 https://github.com/rustls/rustls-platform-verifier/pull/135

tottoto avatar Oct 05 '24 09:10 tottoto

It would be good to get @djc's thoughts here, since the benefits listed by rustls-platform-verifier itself seem good, albeit small... and it's not clear to me if there are more and/or worse platform support caveats using this vs sticking with rustls-native-certs.

tobz avatar Oct 22 '24 19:10 tobz

As @tottoto suggested in a previous comment (thought it might not be quite clear), released versions of rustls-platform-verifier don't have all the API in place to support additivity with native-roots and webpki-roots across platforms, so might want to wait for that. The rustls project recommends ~all users migrate away from rustls-native-certs to using the rustls-platform-verifier.

https://github.com/rustls/rustls-platform-verifier/pull/148

djc avatar Oct 22 '24 19:10 djc

Closing for now, feel free to reopen if we want to pick the work back up.

LucioFranco avatar Jun 20 '25 15:06 LucioFranco

What is the current status for this feature? I have a usecase where I need to support iOS and rustls-native-certs does not work (https://github.com/hyperium/tonic/issues/1403). Using tls-webpki-roots is not a very good solution for me as I would not like to package certificates with an application, that could use the operating system certificates instead.

Is a workaround available with which it is somehow possible to inject rustls-platform-verifier while this feature is not merged?

Relevant for https://github.com/TimOrtel/GRPC-Kotlin-Multiplatform/issues/60

TimOrtel avatar Jul 29 '25 18:07 TimOrtel