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