serverapps:security:cert:acmesh
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
serverapps:security:cert:acmesh [2024/12/09 06:33] – hayashi | serverapps:security:cert:acmesh [2025/04/23 08:11] (現在) – hayashi | ||
---|---|---|---|
行 1: | 行 1: | ||
====== acme.sh ====== | ====== acme.sh ====== | ||
===== install ===== | ===== install ===== | ||
+ | == pkg == | ||
pkg install acme.sh | pkg install acme.sh | ||
+ | |||
+ | == curl == | ||
+ | |||
+ | curl https:// | ||
+ | |||
+ | == wget == | ||
+ | |||
+ | wget -O - https:// | ||
+ | |||
+ | == git == | ||
+ | |||
+ | git clone https:// | ||
+ | cd ./acme.sh | ||
+ | ./acme.sh --install -m my@example.com | ||
+ | |||
+ | ===== cron ===== | ||
+ | |||
+ | curlやwgetでinstallした場合には設定されるがpkgでは設定されないので以下を参考に設定する | ||
+ | |||
+ | 0 0 * * * / | ||
+ | |||
+ | ===== 取得した証明書の配置 ===== | ||
+ | |||
+ | ==== Apache ==== | ||
+ | |||
+ | acme.sh --install-cert -d example.com \ | ||
+ | --cert-file | ||
+ | --key-file | ||
+ | --fullchain-file / | ||
+ | --reloadcmd | ||
+ | |||
+ | ==== nginx ==== | ||
+ | |||
+ | acme.sh --install-cert -d example.com \ | ||
+ | --key-file | ||
+ | --fullchain-file / | ||
+ | --reloadcmd | ||
+ | |||
+ | ==== オプション ==== | ||
+ | |||
+ | ^コマンド/ | ||
+ | |--install-cert|-|鍵の配置とreload| | ||
+ | |-d|www.example.com|ドメイン(必須)| | ||
+ | |--cert-file|/ | ||
+ | |--key-file | ||
+ | |--fullchain-file |path/ | ||
+ | |--reloadcmd | ||
+ | |||
+ | |||
===== Serevr ===== | ===== Serevr ===== | ||
行 20: | 行 70: | ||
|google|https:// | |google|https:// | ||
|googletest|https:// | |googletest|https:// | ||
+ | |||
+ | ===== 参考 ===== | ||
+ | |||
+ | * [[https:// | ||
+ | * [[https:// |
serverapps/security/cert/acmesh.1733725990.txt.gz · 最終更新: 2024/12/09 06:33 by hayashi