pub fn from_path_with_passphrase<P: AsRef<Path>>(path: P, passphrase: Option<String>) -> Result<PrivateKey> {
        let mut contents = String::new();
        File::open(path)?.read_to_string(&mut contents)?;

        PrivateKey::from_string_with_passphrase(&contents, passphrase)
    }
/// Reads an OpenSSH private key from a given path and passphrase
Reads an OpenSSH private key from a given path and passphrase
Reads an OpenSSH private key from a given path and passphrase
pub fn from_path_with_passphrase<P: AsRef<Path>>(path: P, passphrase: Option<String>) -> Result<PrivateKey> {
        let mut contents = String::new();
        File::open(path)?.read_to_string(&mut contents)?;
        PrivateKey::from_string_with_passphrase(&contents, passphrase)
    }
pub fn from_path_with_passphrase < P : AsRef < Path > > ( path : P , passphrase : Option < String > ) -> Result < PrivateKey > { let mut contents = String :: new ( ) ; File :: open ( path ) ? . read_to_string ( & mut contents ) ? ; PrivateKey :: from_string_with_passphrase ( & contents , passphrase ) }
Reads an OpenSSH private key from a given path and passphrase
Reads an OpenSSH private key from a given path and passphrase
path
P
passphrase
Option<String>