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

Class Builder

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

# fn main() -> Result<(), ssh_key::Error> { use ssh_key::{Algorithm, PrivateKey, certificate, getrandom::SysRng, rand_core::UnwrapErr}; use std::time::{SystemTime, UNIX_EPOCH}; // Generate the certificate authority's private key let mut rng = UnwrapErr(SysRng); let ca_key = PrivateKey::random(&mut rng, Algorithm::Ed25519)?; // Generate a "subject" key to be signed by the certificate authority. /

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected