TLS / mTLS helpers for inter-service gRPC.
Cognitora speaks gRPC across hosts and uses mutual TLS for everything
that crosses a network boundary. This crate exposes a couple of small
helpers built on top of rustls and tonic:
- [
load_identity] – read a PEM cert + key into a tonicIdentity. - [
server_tls] – assemble a tonicServerTlsConfigrequiring mTLS. - [
client_tls] – assemble a tonicClientTlsConfigagainst a CA. - [
generate_dev_pki] – bootstrap a self-signed CA + leaf forcgn-ctl pki.