Let's encrypt の更新期限が過ぎており、サイトが表示されなくなっていました。
そこで、サーバーをストップしてから更新のコマンド
sudo certbot renew
を打ったのですが、以下の結果が返ってきて更新できませんでした。
【質問】
======================
一度Let's encryptをリセットして初めから入れ直したいのですが、
入れ直すには何(ファイルやディレクトリ)を削除すればいいのでしょうか?
======================
以下に情報、やったことを掲載します。
システム情報
・os:centos7.3.161
・サーバー:apache2.4.6
・返ってきた結果
Saving debug log to /var/log/letsencrypt/letsencrypt.log ------------------------------------------------------------------------------- Processing /etc/letsencrypt/renewal/sample.com.conf ------------------------------------------------------------------------------- Cert is due for renewal, auto-renewing... Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org Renewing an existing certificate Performing the following challenges: tls-sni-01 challenge for sample.com Cleaning up challenges Attempting to renew cert from /etc/letsencrypt/renewal/sample.com.conf produced an unexpected error: Could not bind TCP port 443 because it is already in use by another process on this system (such as a web server). Please stop the program in question and then try again.. Skipping. All renewal attempts failed. The following certs could not be renewed: /etc/letsencrypt/live/sample.com/fullchain.pem (failure) 1 renew failure(s), 0 parse failure(s)
追記:サーバーを停止
service httpd stop
してから以下のコマンドを打ちました。
./certbot-auto renew --force-renewal
しかし、以下の結果が返ってきてどうやら更新できませんでした。
Saving debug log to /var/log/letsencrypt/letsencrypt.log ------------------------------------------------------------------------------- Processing /etc/letsencrypt/renewal/sample.com.conf ------------------------------------------------------------------------------- Renewing an existing certificate Performing the following challenges: tls-sni-01 challenge for sample.com Waiting for verification... Cleaning up challenges Attempting to renew cert from /etc/letsencrypt/renewal/sample.com.conf produced an unexpected error: Failed authorization procedure. sample.com (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: DNS problem: SERVFAIL looking up A for sample.com. Skipping. All renewal attempts failed. The following certs could not be renewed: /etc/letsencrypt/live/sample.com/fullchain.pem (failure) 1 renew failure(s), 0 parse failure(s) IMPORTANT NOTES: - The following errors were reported by the server: Domain: sample.com Type: connection Detail: DNS problem: SERVFAIL looking up A for sample.com To fix these errors, please make sure that your domain name was entered correctly and the DNS A record(s) for that domain contain(s) the right IP address. Additionally, please check that your computer has a publicly routable IP address and that no firewalls are preventing the server from communicating with the client. If you're using the webroot plugin, you should also verify that you are serving files from the webroot path you provided.
最初から設定しようと思ってやっていましたが、
certbot run --apache -d sample.com
のコマンド入力の結果が、
Saving debug log to /var/log/letsencrypt/letsencrypt.log Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org Cert is due for renewal, auto-renewing... Renewing an existing certificate Performing the following challenges: tls-sni-01 challenge for sample .com Waiting for verification... Cleaning up challenges Failed authorization procedure. sample.com (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: DNS problem: SERVFAIL looking up A for sample.com IMPORTANT NOTES: - The following errors were reported by the server: Domain: sample.com Type: connection Detail: DNS problem: SERVFAIL looking up A for sample.com To fix these errors, please make sure that your domain name was entered correctly and the DNS A record(s) for that domain contain(s) the right IP address. Additionally, please check that your computer has a publicly routable IP address and that no firewalls are preventing the server from communicating with the client. If you're using the webroot plugin, you should also verify that you are serving files from the webroot path you provided.
となり、エラーが返ってきました。
以上詳しい方がいらっしゃれば是非ともご教示いただければありがたいです。
何卒よろしくお願いいたします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/06/14 13:11
退会済みユーザー
2017/06/14 13:16
2017/06/14 13:25
退会済みユーザー
2017/06/14 13:57
退会済みユーザー
2017/06/14 14:27 編集
2017/06/14 14:26