ssh2_fingerprint (PECLssh2>=0.9.0) ssh2_fingerprint—Retrievefingerprintofremoteserver Description stringssh2
openssl_x509_fingerprint (PHP5.6,PHP7) openssl_x509_fingerprint-计算给定X.509证书的指纹或摘要 描述 stringopenssl_x509
negotiated using: {$methods['kex']}\n";echo "Server identified using an {$methods['hostkey']} with ";echo "fingerprint
aa9399a2175a93b17b1c86c807e08d3fc4b79876545432a629602f61cf6ccd6btest-this 显式传递环境变量时 exportDIGITALOCEAN_ACCESS_TOKEN="yourtoken";exportDIGITALOCEAN_SSH_KEY_FINGERPRINT
Onceconnected,theclientshouldverifytheserver'shostkeyusingssh2_fingerprint(),thenauthenticateusingeitherpasswordorpublickey
←openssl_x509_fingerprint openssl_x509_parse→
字符串-主题的通用名称 serialNumber字符串-十六进制值表示字符串 validStart编号-证书的开始日期以秒为单位有效 validExpiryNumber-证书的结束日期以秒为单位有效 fingerprint
←openssl_x509_export_to_file openssl_x509_fingerprint→
Requestaninteractiveshell ssh2_exec()-Executeacommandonaremoteserver ssh2_connect()-ConnecttoanSSHserver ←ssh2_exec ssh2_fingerprint
ssh_hostkey_fingerprint(HostKey)->string()ssh_hostkey_fingerprint(DigestType,HostKey)->string()ssh_hostkey_fingerprint
当客户端证书存在时,其详细信息将在以下请求标头中传递:“Auth-SSL-Subject”,“Auth-SSL-Issuer”,“Auth-SSL-Serial”和“Auth-SSL-Fingerprint
HashAlgoSpec,CallbackFun}} HashAlgoSpec=crypto:digest_type()|[crypto:digest_type()] CallbackFun=fun(PeerName,FingerPrint
$ssl_client_cert以建立的SSL连接的PEM格式返回客户端证书,每行除第一行加上制表符(1.11.8);$ssl_client_fingerprint为建立的SSL连接(1.11.8)返回客户端证书的
$ssl_client_fingerprint为已建立的SSL连接(1.7.1)返回客户端证书的SHA1指纹;$ssl_client_i_dn根据RFC2253(1.11.6)返回已建立的SSL连接的客户端证书的
,raw:<RAWDERbuffer>,valid_from:'Nov1109:52:222009GMT',valid_to:'Nov609:52:222029GMT',fingerprint:'2A: