MCPcopy Create free account
hub / github.com/RustCrypto/SSH / new

Method new

ssh-key/src/certificate/builder.rs:103–126  ·  view source on GitHub ↗

Create a new certificate builder for the given subject's public key. Also requires a nonce (random value typically 16 or 32 bytes long) and the validity window of the certificate as Unix seconds. # Errors Returns [`Error::CertificateFieldInvalid`] if `valid_before < valid_after`.

(
        nonce: impl Into<Vec<u8>>,
        public_key: impl Into<public::KeyData>,
        valid_after: u64,
        valid_before: u64,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

invalid_errorMethod · 0.80

Tested by

no test coverage detected