Skip to main content

generate_ca

Function generate_ca 

Source
pub fn generate_ca(cert_path: &Path, key_path: &Path) -> Result<()>
Expand description

Generate a local root CA certificate and private key using rcgen.

The CA is used to sign per-domain certificates on demand (SNI). Files are written in PEM format to cert_path and key_path.