openssl_x509_fingerprint
(PHP 5 >= 5.6.0, PHP 7, PHP 8)
openssl_x509_fingerprint — Calculates the fingerprint, or digest, of a given X.509 certificate
Return Values
Returns a string containing the calculated certificate fingerprint as lowercase hexits unless binary is set to true in which case the raw binary representation of the message digest is returned.
Returns false on failure.