bitwarden_ssh::import

Function import_key

Source
pub fn import_key(
    encoded_key: String,
    password: Option<String>,
) -> Result<SshKey, SshKeyImportError>
Expand description

Import a PKCS8 or OpenSSH encoded private key, and returns a decoded SshKey, with the public key and fingerprint, and the private key in OpenSSH format. A password can be provided for encrypted keys.

ยงReturns