WordPressをEC2のBitnamiを使ってSSL(https)する際に聞かれるメッセージの備忘録


BitnamiでWordpressを導入した場合、Let's EncryptのSSL証明書を取得するコマンドが事前に提供されており、SSHでサーバーに入って sudo /opt/bitnami/bncert-tool をたたけば一発OKです。

始めてコマンドを叩いたときは衝撃的だった。
本当に全部やってくれます。

ただ初めてやるときは何を聞かれるか(私はすごーく)不安なので、そのコマンド上のメッセージをメモ。ただそれだけです。きっとニーズはあるはず。

環境

記事投稿時のAmazon マシンイメージ (AMI)

WordPress Certified by Bitnami and Automattic
 (114)| 5.3-0 on Ubuntu 16.04 以前のバージョン | 担当 Bitnami
Linux/Unix, Ubuntu 16.04 | 64 ビット Amazon マシンイメージ (AMI) x86 | 更新済み: 2019/11/14

下記、そのやりとり。
英語に自身ないのでGoogle翻訳などで解釈ください。

質問: 1つ目

----------------------------------------------------------------------------
Welcome to the Bitnami HTTPS Configuration tool.
----------------------------------------------------------------------------
Domains

Please provide a valid space-separated list of domains for which you wish to 
configure your web server.

Domain list []: 

your-domain.com

(SSLしたいドメインを入力する)

質問: 2つ目

The following domains were not included: www.your-domain.com. Do you want to add them? [Y/n]: 

n

(wwwをつけるかは好みで)

質問: 3つ目

Warning: No www domains (e.g. www.example.com) or non-www domains (e.g. 
www.example.com) have been provided, so the following redirections will be 
disabled: non-www to www, www to non-www.
Press [Enter] to continue:

(Enterを押す)

質問: 4つ目

Enable HTTP to HTTPS redirection [Y/n]: 

Y

(httpへのアクセスはhttpsにリダイレクトを設定するか。)

質問: 5つ目

1. Stop web server
2. Configure web server to use a free Let's Encrypt certificate for the domains: your-domain.com
3. Configure a cron job to automatically renew the certificate each month
4. Configure web server name to: your-domain.com
5. Enable HTTP to HTTPS redirection (example: redirect http://your-domain.com to https://your-domain.com)
6. Start web server once all changes have been performed

Y

(1〜6を行うけど問題ないかの確認。cronまで設定してくれるっぽい)

質問: 6つ目

Please provide a valid e-mail address for which to associate your Let's Encrypt 
certificate.

Domain list: your-domain.com
Server name: your-domain.com

[email protected]

(自身のメアドを入力)

質問: 7つ目

The Let's Encrypt Subscriber Agreement can be found at:

https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf

Do you agree to the Let's Encrypt Subscriber Agreement? [Y/n]: 

Y

(同意しますか?)

質問: 8つ目

The configuration report is shown below.

Backup files:
* /opt/bitnami/apache2/conf/httpd.conf.back.201912031526
* /opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf.back.201912031526
* /opt/bitnami/apache2/conf/bitnami/bitnami.conf.back.201912031526

Find more details in the log file:

/tmp/bncert-201912031526.log

If you find any issues, please check Bitnami Support forums at:

https://community.bitnami.com

Press [Enter] to continue:

(Enterを押す)

参考

おしまい!