Skip to main content

ensure_certs

Function ensure_certs 

Source
pub fn ensure_certs(cert_dir: &Path) -> Result<(PathBuf, PathBuf)>
Expand description

Ensure that cert.pem and key.pem exist in cert_dir.

If both files exist, returns their paths immediately. If either is missing, generates a new self-signed certificate pair.