feat(transport): Add support client mTLS (#77)

This commit adds a simple API for specifying the TLS certificate a GRPC
client will present (via the same `Identity` wrapper as a server cert is
configured). It also adds an API to specify which CA certificate client
TLS certificates will be validated against for servers.
This commit is contained in:
James Nugent
2019-10-22 17:00:08 -04:00
committed by Lucio Franco
parent 9079e0f66b
commit 335a373a40
11 changed files with 354 additions and 51 deletions
+8
View File
@@ -44,6 +44,14 @@ path = "src/tls/client.rs"
name = "tls-server"
path = "src/tls/server.rs"
[[bin]]
name = "tls-client-auth-server"
path = "src/tls_client_auth/server.rs"
[[bin]]
name = "tls-client-auth-client"
path = "src/tls_client_auth/client.rs"
[dependencies]
tonic = { path = "../tonic", features = ["rustls"] }
bytes = "0.4"