回答編集履歴

1

追記

2017/10/09 03:03

投稿

CHERRY
CHERRY

スコア25171

test CHANGED
@@ -57,3 +57,87 @@
57
57
  たとえば、ドメインの管理者宛(root@ドメイン や admin@ドメイン や whois のドメイン担当者アドレス 等)に確認メールが届くので、届いたメール記載のURLをクリックする等でドメインの所有を確認してSSL証明書を発行できる会社もありますので、そのような会社からSSL証明書の発行を受ける必要があります。
58
58
 
59
59
  Let's Encrypt 以外のSSL発行会社の場合、SSL証明書発行費用は、有料です。
60
+
61
+
62
+
63
+ ----
64
+
65
+ (2017.10.09 追記)
66
+
67
+ http でファイル認証できない場合にファイル認証以外の方法で、Let's Encrypt で、SSL証明書を発行する手順を追記
68
+
69
+
70
+
71
+
72
+
73
+ certbot のマニュアルを読み直してみていたら「--manual」と「--preferred-challenges dns」がありましたので、試してみたところ、Web アクセスできないサーバーに対して、SSL証明書を発行することができましたので、追記しておきます。
74
+
75
+
76
+
77
+ コマンドラインで
78
+
79
+ ```
80
+
81
+ certbot certonly --manual --preferred-challenges dns -d ドメイン
82
+
83
+ ```
84
+
85
+ と実行すると、以下のようなメッセージが表示して、キー入力待ちになるので、表示される文字列を対象ドメインの DNS サーバーで、「_acme-challenge」の TXT フィールドに設定します。
86
+
87
+
88
+
89
+ > Please deploy a DNS TXT record under the name
90
+
91
+ > _acme-challenge.example.com with the following value:
92
+
93
+ >
94
+
95
+ > v7XXXXXZZZZYYY111222333444455566677788899VU
96
+
97
+ >
98
+
99
+ > Before continuing, verify the record is deployed.
100
+
101
+
102
+
103
+ DNSの設定が完了したら、キーを押して継続すると 以下のように表示され、DNSに登録したレコードでドメインが認証されて、SSL証明書を発行されました。
104
+
105
+
106
+
107
+ > Waiting for verification...
108
+
109
+ > Cleaning up challenges
110
+
111
+ >
112
+
113
+ > IMPORTANT NOTES:
114
+
115
+ > - Congratulations! Your certificate and chain have been saved at:
116
+
117
+ > /etc/letsencrypt/live/example.com/fullchain.pem
118
+
119
+ > Your key file has been saved at:
120
+
121
+ > /etc/letsencrypt/live/example.com/privkey.pem
122
+
123
+ > Your cert will expire on 2018-01-07. To obtain a new or tweaked
124
+
125
+ > version of this certificate in the future, simply run certbot-auto
126
+
127
+ > again. To non-interactively renew *all* of your certificates, run
128
+
129
+ > "certbot renew"
130
+
131
+ > - If you like Certbot, please consider supporting our work by:
132
+
133
+ >
134
+
135
+ > Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
136
+
137
+ > Donating to EFF: https://eff.org/donate-le
138
+
139
+
140
+
141
+
142
+
143
+ 詳しくは、[certbot manual オプションマニュアル](https://certbot.eff.org/docs/using.html#manual) を参考にしてください。