Skip to main content

parse_public_key_file

Function parse_public_key_file 

Source
pub fn parse_public_key_file(path: &str) -> Result<ParsedKey, SshKeyParseError>
Expand description

Read and parse an OpenSSH public-key file (typically ending in .pub).

§Errors

Returns SshKeyParseError::Io on filesystem failures, SshKeyParseError::Parse when the file’s contents are not a valid OpenSSH public key.