gpt4 book ai didi

PHP SSL 证书摘要

转载 作者:太空宇宙 更新时间:2023-11-03 13:17:31 26 4
gpt4 key购买 nike

我不是一个非常有经验的 PHP 开发人员,但我被赋予了检查 x509 证书摘要的任务。我知道对于 PHP 5.6 有一个名为 openssl_x509_fingerprint() 的函数,但我需要在 PHP 5.3 服务器上显示摘要。这个有旧的或替代的功能吗?

谢谢,太极拳

最佳答案

http://php.net/openssl-x509-certificate .看起来不像您认为的 5.6 中的功能。

无论如何,使用 phpseclib ,你可以这样做:

<?php
include('File/X509.php');

$x509 = new File_X509();
$result = $x509->loadX509(...);
echo $result['signature'];

关于PHP SSL 证书摘要,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26753009/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com