Skip to main content

ssh_key

Function ssh_key 

Source
pub(super) fn ssh_key(details: &VaultItemDetails) -> Option<(SshKey, Claimed)>
Expand description

Builds an SSH key from the first field that carries a usable one.

1Password keeps the key material in the field’s SSH key attributes, with the private key in PKCS#8. Bitwarden expects OpenSSH, so import_key converts it and derives the public key and fingerprint. A field is skipped when it has no private key, when the key cannot be read, or when its value holds something other than the key. None means no field qualified.