dev-master
9999999-devThis extension provides an easy interface to implement your own CA in the Yii2 framework.
MIT
The Requires
by Steve Simpson
extension yii2 openssl ca certificate authority
This extension provides an easy interface to implement your own CA in the Yii2 framework.
This extension provides an easy interface to implement your own CA in the Yii2 framework., (*1)
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)
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, ];
This extension provides an easy interface to implement your own CA in the Yii2 framework.
MIT
extension yii2 openssl ca certificate authority