Function sequoia_net::wkd::insert

source ·
pub fn insert<P, S, V>(
    base_path: P,
    domain: S,
    variant: V,
    cert: &Cert
) -> Result<()>
where P: AsRef<Path>, S: AsRef<str>, V: Into<Option<Variant>>,
Expand description

Inserts a key into a Web Key Directory.

Creates a WKD hierarchy at base_path for domain, and inserts the given cert. If cert already exists in the WKD, it is updated. Any existing Certs are left in place.

Errors

If the Cert does not have a well-formed UserID with domain, Error::InvalidArgument is returned.