差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
linux:certbot_client [2023/03/01 12:55] – [既に取得済みの証明書にサブドメインを追加] ともやん | linux:certbot_client [2025/04/23 07:14] (現在) – [Certbot クライアント] ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
====== Certbot クライアント ====== | ====== Certbot クライアント ====== | ||
+ | Certbot は Electronic Frontier 財団が開発した ACME クライアントで Python で書かれている🤔\\ | ||
+ | [[arc> | ||
- | ===== Fedora | + | ACME (自動証明書管理環境) は、認証機関 (CA) が署名する X.509 証明書を自動化するために、インターネット標準 ([[https:// |
+ | |||
+ | [[https:// | ||
+ | |||
+ | ===== Fedora でのインストール ===== | ||
<WRAP color_term> | <WRAP color_term> | ||
<WRAP color_command>< | <WRAP color_command>< | ||
行 196: | 行 202: | ||
<WRAP color_term> | <WRAP color_term> | ||
<WRAP color_command>< | <WRAP color_command>< | ||
- | $ sudo certbot certonly --force-renew --webroot -w / | + | <b class=GRN> |
+ | </ | ||
+ | <WRAP color_result>< | ||
+ | 合計 3 | ||
+ | drwx------. 1 root root 88 8月 28 06:47 . | ||
+ | drwxr-xr-x. 1 root root 106 8月 28 06:47 .. | ||
+ | -rw-r--r--. 1 root root 740 2月 15 2019 README | ||
+ | drwxr-xr-x | ||
+ | drwxr-xr-x. 1 root root 94 8月 28 06:15 tomoyan.net | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | <b class=GRN> | ||
</ | </ | ||
<WRAP color_result>< | <WRAP color_result>< | ||
Saving debug log to / | Saving debug log to / | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | An RSA certificate named monsters-g.com already exists. Do you want to update | ||
+ | its key type to ECDSA? | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | (U)pdate key type/(K)eep existing key type: u | ||
Renewing an existing certificate for monsters-g.com and 2 more domains | Renewing an existing certificate for monsters-g.com and 2 more domains | ||
行 205: | 行 230: | ||
Certificate is saved at: / | Certificate is saved at: / | ||
Key is saved at: / | Key is saved at: / | ||
- | This certificate expires on 2023-05-29. | + | This certificate expires on 2023-07-02. |
These files will be updated when the certificate renews. | These files will be updated when the certificate renews. | ||
Certbot has set up a scheduled task to automatically renew this certificate in the background. | Certbot has set up a scheduled task to automatically renew this certificate in the background. | ||
行 220: | 行 245: | ||
<WRAP color_term> | <WRAP color_term> | ||
<WRAP color_command>< | <WRAP color_command>< | ||
- | $ sudo systemctl reload httpd | + | <b class=GRN> |
</ | </ | ||
</ | </ | ||
行 249: | 行 274: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | ===== 証明書更新の実行 ===== | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | $ sudo certbot renew | ||
+ | </ | ||
+ | <WRAP color_result_long>< | ||
+ | Saving debug log to / | ||
+ | |||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | Processing / | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | Cert is due for renewal, auto-renewing... | ||
+ | Plugins selected: Authenticator webroot, Installer None | ||
+ | Renewing an existing certificate | ||
+ | Performing the following challenges: | ||
+ | http-01 challenge for monsters-g.com | ||
+ | http-01 challenge for www.monsters-g.com | ||
+ | Waiting for verification... | ||
+ | Cleaning up challenges | ||
+ | |||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | new certificate deployed without reload, fullchain is | ||
+ | / | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | |||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | Processing / | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | Cert is due for renewal, auto-renewing... | ||
+ | Plugins selected: Authenticator webroot, Installer None | ||
+ | Renewing an existing certificate | ||
+ | Performing the following challenges: | ||
+ | http-01 challenge for redmine.tomoyan.net | ||
+ | http-01 challenge for repos.tomoyan.net | ||
+ | http-01 challenge for tomoyan.net | ||
+ | http-01 challenge for www.tomoyan.net | ||
+ | Waiting for verification... | ||
+ | Cleaning up challenges | ||
+ | |||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | new certificate deployed without reload, fullchain is | ||
+ | / | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | |||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | |||
+ | Congratulations, | ||
+ | / | ||
+ | / | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | 新しい証明書を反映させるために、Apache をリロードする😉\\ | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | $ sudo systemctl reload httpd | ||
+ | </ | ||
+ | </ | ||
+ | |||