該應用基于開源項目 acme.sh 開發(fā),為廣大電商自建站用戶提供 域名ssl證書
的申請自動化及部署。
免費域名證書有效期90天,可自動續(xù)簽。
申請方式支持 http方式
和 dns方式
(需要域名提供商API賬號),dns方式可支持申請泛域名證書。
提供域名SSL證書的自動化申請和部署
curl https://get.acme.sh | sh -s email=my@example.com
Or
wget -O - https://get.acme.sh | sh -s email=my@example.com
Or
cd ~
git clone https://github.com/acmesh-official/acme.sh.git
cd ./acme.sh && ./acme.sh --install -m my@example.com
composer require webman/redis-queue
安裝完成后 在配置文件 /config/plugin/webman/redis-queue/process.php
中追加消費者目錄
<?php
return [
'consumer' => [
'handler' => Webman\RedisQueue\Process\Consumer::class,
'count' => 2, // 可以設置多進程同時消費
'constructor' => [
// 消費者類目錄
'consumer_dir' => app_path() . '/queue/redis'
]
],
//申請域名證書消費者隊列
'domainssl' => [
'handler' => Webman\RedisQueue\Process\Consumer::class,
'count' => 2, // 可以設置多進程同時消費
'constructor' => [
// 消費者類目錄
'consumer_dir' => base_path() . '/plugin/domain/app/queue'
]
]
];
HTTP方式 檢驗接口:http方式申請域名時,發(fā)行機構(gòu)會外網(wǎng)訪問 http://你的域名/.well-known/acme-challenge/xxx
校驗,該接口提供實現(xiàn)寫入檢驗文件,
可參考http://你的域名/app/domain/identifier/index
,非本服務器需自行實現(xiàn)該自定義接口
HTTP方式 部署接口:域名證書申請完成時將POST推送證書信息到該接口,
可參考 https://你的域名/app/domain/deploy/index
,非本服務器需自行實現(xiàn)該自定義接口
阿里云 DnsAccessKey:dns方式申請時,阿里云api參數(shù)
阿里云 DnsAccessSecret:dns方式申請時,阿里云api參數(shù)
Godday Key:dns方式申請時,Godday api參數(shù)
Godday Secret:dns方式申請時,Godday api參數(shù)
其它廠商可自行擴展
QQ:1556384716
微信:nacrane