Skip to main content

load_cert

Function load_cert 

Source
pub fn load_cert(path: &Path) -> Result<Certificate, AnvilError>
Expand description

Loads an OpenSSH certificate from path (FR-12).

The certificate is presented alongside the private key during [AnvilSession::authenticate_with_cert].

ยงErrors

Returns an error if the file cannot be read or is not a valid OpenSSH certificate.