sam002/yii2-acme

YII2 extension for certificate management using ACME (Automatic Certificate Management Environment)

Installs: 41

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

0.1.3 2016-10-25 22:23 UTC

This package is not auto-updated.

Last update: 2024-04-13 23:36:07 UTC


README

SensioLabsInsight

Codacy Badge Code Climate

Latest Version Software License

YII2 extension for certificate management using ACME (Automatic Certificate Management Environment)

Installation

The preferred way to install this extension is through composer.

Either run

composer require sam002/yii2-acme:~0.1.2

or add

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

to the require section of your application's composer.json file.

Usage

After extension is installed you need to setup auth client collection application component:

Configure

Frontend (need to checked by certificate provider)

...
'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'
    ],
    ...
]

Console task

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

Further Information

Credits

License

The LGPLv3 License. Please see License File for more information.