docs: public static String getFingerprint(final X509Certificate certificate,
  		final HashAlgorithm hashAlgorithm)
  		throws CertificateEncodingException, NoSuchAlgorithmException
  	{
  		final byte[] derEncoded = certificate.getEncoded();
  		final MessageDigest messageDigest = MessageDigest.getInstance(hashAlgorithm.getAlgorithm());
  		messageDigest.update(derEncoded);
  		final byte[] digest = messageDigest.digest();
  		final String fingerprint = HexExtensions.toHexString(digest);
  		return fingerprint;
  	}