hash
Hashes the DER encoding of certificate with the digest named by the certificate's own signature algorithm, which is the rule the server follows to arrive at the same bytes.
Throws
if the certificate cannot be encoded or the digest is unavailable in this JVM - either way there is nothing to bind to.