承接 ssimpson/yii2-opensslca 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ssimpson/yii2-opensslca

Composer 安装命令:

composer require ssimpson/yii2-opensslca

包简介

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

README 文档

README

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

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"ssimpson/yii2-opensslca": "*"

to the require section of your composer.json file.

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 :

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

Then add the following detailed configuration :

<?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,
];

统计信息

  • 总下载量: 33.58k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-20