SSL更新方法 » 履歴 » バージョン 1
廣瀬 僚一, 2023/11/28 19:42
| 1 | 1 | 廣瀬 僚一 | # SSL更新方法 |
|---|---|---|---|
| 2 | |||
| 3 | LetsEncryptで、サブドメインをワイルドカードで取得 |
||
| 4 | |||
| 5 | 1. SSHでログイン |
||
| 6 | 2. ルートユーザーで以下のコマンドを実行 |
||
| 7 | |||
| 8 | ```bash |
||
| 9 | certbot certonly --manual --server https://acme-v02.api.letsencrypt.org/directory --preferred-challenges dns -d *.pickbox.online -d pickbox.online -m info@pickbox.online --agree-tos --manual-public-ip-logging-ok |
||
| 10 | ``` |
||
| 11 | 3. 表示されたレコードの情報を、お名前.comでドメインに設定する(2回設定する) |
||
| 12 | 4. letsEncryptの処理が終わったら、nginxをリロードして設定反映させる |
||
| 13 | ```bash |
||
| 14 | systemctl reload nginx |
||
| 15 | ``` |