PHP.nl

openssl_x509_fingerprint

openssl_x509_fingerprint

Calculates the fingerprint, or digest, of a given X.509 certificate

 **openssl_x509_fingerprint**  $certificate string $digest_algo bool $binary
returns the digest of
as a string.

openssl_x509_fingerprint``certificate

digest_algo The digest method or hash algorithm to use, e.g. "sha256", one of . openssl_get_md_methods

binaryWhen set to true, outputs raw binary data. false outputs lowercase hexits.

Returns a string containing the calculated certificate fingerprint as lowercase hexits unless  is set to true in which case the raw binary representation of the message digest is returned.

binary

Returns false on failure.