(PHP 5 >= 5.6.0, PHP 7, PHP 8)
openssl_x509_fingerprint — 計算指定 X.509 憑證的指紋或摘要
$certificate, 字串 $digest_algo = "sha1", 布林值 $binary = false): 字串|false
openssl_x509_fingerprint() 會傳回 certificate 的摘要,格式為字串。
x509請參閱 金鑰/憑證參數 以取得有效值的列表。
digest_algo要使用的摘要方法或雜湊演算法,例如 "sha256",為 openssl_get_md_methods() 的其中之一。
binary| 版本 | 說明 |
|---|---|
| 8.0.0 |
certificate 現在接受 OpenSSLCertificate 實例;先前接受類型為 OpenSSL X.509 的 資源。 |