项目作者: konomae

项目描述 :
Degenerate PKCS7 certificate only form.
高级语言: PHP
项目地址: git://github.com/konomae/pkcs7-php.git
创建时间: 2017-12-21T14:29:58Z
项目社区:https://github.com/konomae/pkcs7-php

开源协议:MIT License

下载


PKCS7-PHP

Build Status

Degenerate PKCS7 certificate only form.

Installation

  1. composer require konomae/pkcs7-php

Example

  1. <?php
  2. use Konomae\PKCS7\Degenerate;
  3. // DER encoded X.509 certificate
  4. $x509 = file_get_contents('/path/to/x509certificate.der');
  5. $p7 = new Degenerate($x509);
  6. // Same result of the command:
  7. // openssl crl2pkcs7 -nocrl -certfile client.crt -outform PEM -out client.p7b.pem
  8. $p7->toPEM();