src: deduplicate X509Certificate::Fingerprint*
X509Certificate::Fingerprint
, X509Certificate::Fingerprint256
, and X509Certificate::Fingerprint512
all do the same, except using different cryptographic hash functions. Move the common logic into a template helper function.