sam002 /

使用ACME(自动证书管理环境)进行证书管理的YII2扩展

安装: 43

依赖: 0

建议: 0

安全性: 0

星星: 2

关注者: 2

分支: 0

开放问题: 0

类型:yii2-extension

0.1.3 2016-10-25 22:23 UTC

This package is not auto-updated.

Last update: 2024-09-15 01:40:31 UTC


README

SensioLabsInsight

Codacy Badge Code Climate

Latest Version Software License

使用ACME(自动证书管理环境)进行证书管理的YII2扩展

安装

安装此扩展的首选方式是通过 composer

运行以下命令之一:

composer require sam002/yii2-acme:~0.1.2

或者将以下内容添加到你的应用程序的 composer.json 文件的require部分:

"sam002/yii2-acme" : "~0.1.2"

使用方法

在安装扩展后,您需要设置认证客户端集合应用程序组件

配置

前端(需要证书提供者验证)

...
'module' => [
    //Catch all requests on .well-known
    '.well-known' => [
        'class' => 'sam002\acme\Acme',
        //optional
        'location' => realpath('../runtime/acme'),
        'providerUrl' => Acme::PROVIDERS['letsencrypt:production']
        'keyLength' => 2048,
        'keyStorage' => 'sam002\acme\storage\file\KeyStorageFile',
        'certificateStorage' => 'sam002\acme\storage\file\CertificateStorageFile'
        'challengeStorage' => 'sam002\acme\storage\file\ChallengeStorageFile'
    ],
    ...
]

控制台任务

...
'controllerMap' => [
    'acme' => [
        'class' => 'sam002\acme\console\AcmeController'
    ],
    ...
]

更多信息

致谢

许可证

GPLv3许可证。请参阅许可证文件以获取更多信息。