[ec2-user@ip-172-11-1-1 bin]# ./certbot-auto --nginx --debug←/usr/local/binのディレクトリで実行します。
Complete!←Pythonの環境等を自動で作成してくれました。
~~~~~~~
←ここから5つの質問に答えます。
Enter email address (used for urgent renewal and security notices) (Enter 'c' tocancel): [email protected]←通知用メールアドレスを入力してEnter
-------------------------------------------------------------------------------
Please read the Terms of Service at
-------------------------------------------------------------------------------
(A)gree/(C)ancel:A←利用規約の同意でA
-------------------------------------------------------------------------------
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and the non-profit
organization that develops Certbot? We'd like to send you email about EFF and
our work to encrypt the web, protect its users and defend digital rights.
-------------------------------------------------------------------------------
(Y)es/(N)o: N←非営利団体からのメールを受け取るかとあるのでN
Which names would you like to activate HTTPS for?
-------------------------------------------------------------------------------
1: hogehoge.com
2: hoge.net
-------------------------------------------------------------------------------
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1,2←証明書を発行するドメインを選択します。複数の場合はカンマ区切りで数字を区切ります。1つの場合は1と入力します。
~~~~~~~~~~~~
Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
-------------------------------------------------------------------------------
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
-------------------------------------------------------------------------------
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2←HTTPでのアクセスをHTTPSにリダイレクトさせるには2を選択します。
-------------------------------------------------------------------------------
Congratulations! You have s~~~~~~~~←Congratulationが表示されたら完了しています。