openssl_x509_fingerprint

Supported Versions: PHP 5 >= 5.6.0, PHP 7, PHP 8
Calculates the fingerprint, or digest, of a given X.509 certificate
<?php openssl_x509_fingerprint(OpenSSLCertificate|string $certificate, string $digest_algo = "sha1", bool $binary = false): string|false