技術

[SSL] let’s encryptの更新でエラー?!

投稿日:

どうも中田です。

無料でSSL証明書が取得できる今日この頃、いかがお過ごしでしょうか。
便利な世の中になりましたが、忘れちゃいけないのが証明書の更新作業。

たまにしかやらないので、これなんでだっけ?ということがままあります。
今回引っかかったエラーはたまにのやつなんで、アウトプットしておこうかと。

やったこと

$ letsencrypt-auto renew --force-renew
Requesting to rerun /letsencrypt-auto with root privileges...
Upgrading certbot-auto 0.23.0 to 0.26.1...
Replacing certbot-auto...
Creating virtual environment...
Installing Python packages...
Installation succeeded.
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/xxxxxx.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for xxxxxx.com
Waiting for verification...
Cleaning up challenges
Attempting to renew cert (xxxxxx.com) from /etc/letsencrypt/renewal/xxxxxx.com.conf produced an unexpected error: Failed authorization procedure. xxxxxx.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://xxxxxx.com/.well-known/acme-challenge/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx: "<html>
<head><title>401 Authorization Required</title></head>
<body bgcolor="white">
<center><h1>401 Authorization Required</". Skipping....

原因

Basic認証掛かってた!

単純なオチですが、同じことで悩んでる方がいればと。。

-技術

執筆者:


comment

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください

関連記事

rails_logo

[Rails] Controllerで表示してるページのパスを判定したい

Controllerで表示してるページのパスを判定して、条件分岐したいと思います …

no image

VivaldiのWEBパネルに登録して便利だったサイトを紹介する

こんばんは VivaldiのWEBパネルはとても便利です。 今回はWEBパネルに …

[Rails] バージョン上げるときに気をつけること

どうも中田です。 セキュリティ診断とかで引っかかってrailsのバージョンあげた …

no image

[wordpress]contact form7で作ったformをコード内で呼び出す

こんばんは wordpressでformを作る時はcontact form7を使 …

SwiftSwitch @ Raspberry Pi 3(ラズベリーパイ)

誕生日ということで会社からRaspberry Pi 3を頂きました! とりあえず …