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:
committed by
Lucio Franco
parent
9079e0f66b
commit
335a373a40
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user