pub fn load_encrypted_key(
path: &Path,
passphrase: &str,
) -> Result<PrivateKey, GitwayError>Expand description
Loads a passphrase-protected key file with the supplied passphrase.
Use this after receiving IdentityResolution::Encrypted and prompting
the user with rpassword (or equivalent) in the CLI layer.
ยงErrors
Returns an error if the passphrase is wrong or the file cannot be read.