konomae / pkcs7-php
PKCS7证书降级表单
0.1.0
2017-12-22 07:07 UTC
Requires
- php: >=7.0
- sop/asn1: ^3.2.0
Requires (Dev)
- phpunit/phpunit: ^6.5
This package is auto-updated.
Last update: 2024-09-15 12:36:28 UTC
README
PKCS7证书降级表单
安装
composer require konomae/pkcs7-php
示例
<?php use Konomae\PKCS7\Degenerate; // DER encoded X.509 certificate $x509 = file_get_contents('/path/to/x509certificate.der'); $p7 = new Degenerate($x509); // Same result of the command: // openssl crl2pkcs7 -nocrl -certfile client.crt -outform PEM -out client.p7b.pem $p7->toPEM();