bitwarden_ssh::generator

Function generate_sshkey

Source
pub fn generate_sshkey(
    key_algorithm: KeyAlgorithm,
) -> Result<SshKey, KeyGenerationError>
Expand description

Generate a new SSH key pair, for the provided key algorithm, returning an SshKey struct containing the private key, public key, and key fingerprint, with the private key in OpenSSH format.