技術

[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 を使っています。コメントデータの処理方法の詳細はこちらをご覧ください

関連記事

no image

ActiveRecord::Relationのklassメソッドでmodelを取得できる。

こんにちは。コーテッグのこやまです。 モデルに対してallやwhereメソッドを …

no image

document.querySelectorで色々なDOMを取得する

こんにちは javascriptでDOMを取得することは結構あるかと思います。 …

no image

OSSに貢献してみたい人向けチュートリアルの紹介

こんばんは githubのtrendingを眺めてたら、OSSに貢献してみたい人 …

AWSのデフォルトリージョンを東京にしたい!

こんにちは。たなかです。 AWSにログインすると、リージョンがデフォルトでオハイ …

rails_logo

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

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