Skip to main content

normalize_fingerprint

Function normalize_fingerprint 

Source
pub fn normalize_fingerprint(input: &str) -> String
Expand description

Normalise a user-supplied fingerprint for comparison.

Accepts the colon-separated form AB:CD:… that openssl x509 -fingerprint prints and an optional sha256: prefix, because those are what people paste.