serverapps:security:cert:acmesh:buypass
差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
serverapps:security:cert:acmesh:buypass [2024/12/09 06:15] – 作成 hayashi | serverapps:security:cert:acmesh:buypass [2024/12/09 06:15] (現在) – [Buypass] hayashi | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== | + | ====== |
+ | **Buypass**を使うと期限を180日にできる | ||
+ | |||
+ | $ acme.sh --set-default-ca --server buypass | ||
+ | Changed default CA to: https:// | ||
+ | |||
+ | ===== レジスト ===== | ||
+ | # acme.sh --register-account -m yourname@example.com | ||
+ | [...... 2022] Registering account: https:// | ||
+ | [...... 2022] Registered | ||
+ | [...... 2022] ACCOUNT_THUMBPRINT=' | ||
+ | |||
+ | ===== 証明書発行 ===== | ||
+ | DNSモードで行う | ||
+ | # acme.sh --server https:// | ||
+ | [...... 2022] Using CA: https:// | ||
+ | ..... | ||
+ | [...... 2022] Add the following TXT record: | ||
+ | [...... 2022] Domain: ' | ||
+ | [...... 2022] TXT value: ' | ||
+ | ..... | ||
+ | |||
+ | 表示されたトークンをDNSに登録((reloadを忘れずに)) | ||
+ | |||
+ | _acme-challenge.sample.example.com. | ||
+ | |||
+ | |||
+ | 発行 | ||
+ | |||
+ | # acme.sh --server https:// | ||
+ | Renew: ' | ||
+ | Using CA: https:// | ||
+ | ...... | ||
+ | Success | ||
+ | ...... | ||
+ | Cert success. | ||
+ | [証明書表示] | ||
+ | ...... | ||
+ | |||
+ | 以下のファイルが作成されている | ||
+ | ca.cer | ||
+ | fullchain.cer | ||
+ | sample.example.com.cer | ||
+ | sample.example.com.conf | ||
+ | sample.example.com.csr | ||
+ | sample.example.com.csr.conf | ||
+ | sample.example.com.key | ||
+ | |||
+ | 今回は、nginxのproxyで使用するので以下のようにコピーする((restartを忘れずに)) | ||
+ | |||
+ | cp fullchain.cer / | ||
+ | cp sample.example.com.key / | ||
+ | |||
+ | |||
+ | ===== 更新 ===== | ||
+ | |||
+ | ((有効期限の30日前から、だったと思う)) | ||
+ | |||
+ | これで良いはず((「force」オプションいる)) | ||
+ | # acme.sh --server https:// | ||
+ | |||
+ | 新しい証明書発行されるのでコピーしてreload | ||
serverapps/security/cert/acmesh/buypass.1733724911.txt.gz · 最終更新: 2024/12/09 06:15 by hayashi