2017 © Pedro Peláez
 

yii2-extension yii2-opensslca

This extension provides an easy interface to implement your own CA in the Yii2 framework.

image

ssimpson/yii2-opensslca

This extension provides an easy interface to implement your own CA in the Yii2 framework.

  • Friday, December 11, 2015
  • by ssimpson
  • Repository
  • 2 Watchers
  • 1 Stars
  • 204 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 77 % Grown

The README.md

Yii2 OpenSSL CA

This extension provides an easy interface to implement your own CA in the Yii2 framework., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist ssimpson/yii2-opensslca "*"

or add, (*4)

"ssimpson/yii2-opensslca": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by adding the following line to the components section of your @app/config/web.php or console.php :, (*6)

'opensslca' => require(__DIR__ . '/opensslca.php'),

Then add the following detailed configuration :, (*7)

<?php
// @app/config/opensslca.php
return [
    'class'    => 'ssimpson\opensslca\Opensslca',
    'password' => 'secret',
    'ca_dir'   => '@app/ca',
    'dn_base'   => [
                   'countryName'  => 'US',
                   'stateOrProvinceName' => 'Some State',
                   'localityName' => 'My City',
                   'organizationName' => 'Snake Oil Development Company',
                   'organizationalUnitName' => 'Demo',
                ],
    'ca_cn'     => 'Snake Oil CA',
    'crlWhenRevoke' => true,
    'crlValidDays'  => 30,
];

The Versions

11/12 2015

dev-master

9999999-dev

This extension provides an easy interface to implement your own CA in the Yii2 framework.

  Sources   Download

MIT

The Requires

 

by Steve Simpson

extension yii2 openssl ca certificate authority