Function security::check_key_file [−][src]
pub(crate) fn check_key_file(
tag: &str,
path: &str
) -> Result<Option<File>, Box<dyn Error>>
Checks and opens key file. Returns Ok(None)
if the path is empty.
Arguments
tag
: only used in the error message, like “ca key”, “cert key”, “private key”, etc.