fingerprintOf function
SHA-256 DER fingerprint of certificate, lowercase hex.
Useful for discovering the value to pin: log it once from a trusted network, then hard-code it.
Implementation
String fingerprintOf(X509Certificate certificate) =>
sha256.convert(certificate.der).toString();