Skip to content

tim-hitchins-ekkosense/pkcs7-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PKCS7-PHP

Build Status

Degenerate PKCS7 certificate only form.

Installation

composer require konomae/pkcs7-php

Example

<?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();

About

Degenerate PKCS7 certificate only form.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%