(PHP 5 >= 5.6.0, PHP 7)
openssl_x509_fingerprint — Calculates the fingerprint, or digest, of a given X.509 certificate
$hash_algorithm= "sha1" [, bool
FALSE]] ) : string
openssl_x509_fingerprint() returns the digest of
x509 as a string.
Returns a string containing the calculated certificate fingerprint as lowercase hexits unless
raw_output is set to
TRUE in which case the raw binary representation of the message digest is returned.
FALSE on failure.