(PHP 5 >= 5.6.0, PHP 7, PHP 8)
openssl_x509_fingerprint — 计算一个给定的 x.509 证书的指纹或摘要
$certificate
, string $digest_algo
= "sha1", bool $binary
= false
): string|false
openssl_x509_fingerprint() 返回 certificate
的字符串类型的摘要。
x509
参见密钥/证书参数以获取有效值列表。
digest_algo
使用的摘要方法或散列算法,比如,"sha256"、openssl_get_md_methods() 摘要算法之一。
binary
版本 | 说明 |
---|---|
8.0.0 |
certificate 现在接受 OpenSSLCertificate
实例;之前接受类型 OpenSSL X.509 的 resource。
|
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant