pub fn calculate_fingerprint(certificate: &[u8]) -> Option<Vec<u8>>