ubuntu-server-18-04:certbot
差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
ubuntu-server-18-04:certbot [2019/08/29 14:37] – 作成 admin | ubuntu-server-18-04:certbot [2020/04/10 13:19] (現在) – [インストール] admin | ||
---|---|---|---|
行 8: | 行 8: | ||
* お名前.com VPS (KVM) 1GB プラン | * お名前.com VPS (KVM) 1GB プラン | ||
+ | ^ パッケージ名 ^ バージョン ^ | ||
+ | | certbot | 0.31.0-1+ubuntu18.04.1+certbot+1 | | ||
===== インストール ===== | ===== インストール ===== | ||
+ | Certbot をインストールする。PPA を追加しなくても universe からインストールできるようだが、Let' | ||
+ | < | ||
+ | $ sudo apt-get update | ||
+ | $ sudo add-apt-repository ppa: | ||
+ | $ sudo apt-get update | ||
+ | $ sudo apt-get install certbot | ||
+ | </ | ||
+ | |||
+ | 他に Web サーバがマシン上で稼働しない場合を想定して以下の作業を進める。 | ||
+ | |||
+ | <note important> | ||
+ | 他に Web サーバが存在する場合はインストールコマンドのオプションが異なる。 | ||
+ | |||
+ | 例 "$ sudo certbot --apache" | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | SSL 証明書取得のために 80 ポートを Certbot が使用する。ファイアフォールで 80 ポートをブロックしている場合は、certbot のためにポートを解放する。 | ||
+ | |||
+ | < | ||
+ | $ sudo ufw allow 80/tcp | ||
+ | </ | ||
+ | |||
+ | 以下のコマンドで Certbot を設定する。 | ||
+ | |||
+ | < | ||
+ | $ sudo certbot certonly --standalone | ||
+ | </ | ||
+ | |||
+ | |||
+ | * Enter email address (used for urgent renewal and security notices): | ||
+ | * セキュリティ問題等の通知先: | ||
+ | * (A)gree/ | ||
+ | * 規約に同意する場合は A を入力 | ||
+ | * Would you be willing to share your email address with ... | ||
+ | * メーリングリストに参加する場合は Y を入力。しない場合は N。 | ||
+ | * Please enter in your domain name(s) (comma and/or space separated): | ||
+ | * SSL 証明書を発行するドメインを入力: | ||
+ | |||
+ | |||
+ | 証明書の取得に成功すると以下のメッセージが表示される。 | ||
+ | |||
+ | 取得されたキーファイルは / | ||
+ | |||
+ | < | ||
+ | Obtaining a new certificate | ||
+ | Performing the following challenges: | ||
+ | http-01 challenge for example.com | ||
+ | Waiting for verification... | ||
+ | Cleaning up challenges | ||
+ | |||
+ | IMPORTANT NOTES: | ||
+ | - Congratulations! Your certificate and chain have been saved at: | ||
+ | / | ||
+ | Your key file has been saved at: | ||
+ | / | ||
+ | Your cert will expire on 2019-11-28. To obtain a new or tweaked | ||
+ | | ||
+ | | ||
+ | " | ||
+ | - If you like Certbot, please consider supporting our work by: | ||
+ | |||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | |||
+ | インストール時にすでに証明書の更新を行う crontab が / | ||
+ | |||
+ | 以下のコマンドで、実際の更新を行わずに更新のテストだけを行える。 | ||
+ | |||
+ | < | ||
+ | $ sudo certbot renew --dry-run | ||
+ | </ | ||
===== 参考 ===== | ===== 参考 ===== |
ubuntu-server-18-04/certbot.1567057045.txt.gz · 最終更新: 2019/08/29 14:37 by admin