Skip to main content

fingerprint_of_der

Function fingerprint_of_der 

Source
pub fn fingerprint_of_der(der: &[u8]) -> String
Expand description

SHA-256 of a certificate’s DER encoding, lower-case hex.

This is the string users compare and pin. It is computed the same way in every code path on purpose — a fingerprint that is formatted differently in two places is a pin that silently never matches.