获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
$res = openssl_x509_parse(file_get_contents(apiclient_cert.pem)); 你这个file_get_contents里面需要设置成 file://apiclient_cert.pem路径就可以了,本地路径必须用file://
命令行和php程序中获取商户API证书序列号不一样的问题?命令行: openssl x509 -in apiclient_cert.pem -noout -serial php: <?php $res = openssl_x509_parse(file_get_contents(apiclient_cert.pem)); echo $res['serialNumber']; ?>
2022-06-25