cgn-tls 0.1.0

Cognitora: rustls helpers and mTLS bootstrap
Documentation

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 tonic Identity.
  • [server_tls] – assemble a tonic ServerTlsConfig requiring mTLS.
  • [client_tls] – assemble a tonic ClientTlsConfig against a CA.
  • [generate_dev_pki] – bootstrap a self-signed CA + leaf for cgn-ctl pki.