Expand description
TLS support for the Trustee API server.
Provides self-signed certificate auto-generation and rustls server config
loading. Certificates are stored at ~/.trustee/certs/{cert.pem,key.pem}
and generated on first run if missing.
Functionsยง
- default_
cert_ dir - Resolve the default certificate directory:
~/.trustee/certs/ - ensure_
certs - Ensure that cert.pem and key.pem exist in
cert_dir. - load_
tls_ config - Load a rustls
ServerConfigfrom PEM-encoded cert and key files.