Skip to main content

load_or_generate

Function load_or_generate 

Source
pub fn load_or_generate(
    pki_dir: &Path,
    permitted_dns: &[String],
) -> Result<Ca, PkiError>
Expand description

Ported from LoadOrGenerate.

§Errors

Returns PkiError if an existing CA can’t be read/parsed, or if generating and publishing a new one fails.