vladzur/cacert

This package is abandoned and no longer maintained. No replacement package was suggested.

Simple CACERT

1.0.0 2015-01-12 20:04 UTC

This package is not auto-updated.

Last update: 2020-04-17 17:01:35 UTC


README

(Project abandoned) Cacert is used to generate self-signed certificates.

You can generate the certificate of the certification authority and generate new certificates with that signature

Usage

<?php
require_once 'Cacert.php';
$CA = new \Vladzur\Cacert\Cacert();
print_r($CA->generateCACERT()); //CA Certificate
$params = array(
    'commonName' => 'Vladimir Zurita',
    'emailAddress' => 'vladzur@gmail.com',
    'organizationName' => 'Lemontech',
    'organizationalUnitName' => 'Developers'
);
print_r($CA->generateCert($params)); //USer Certificate