技術

[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

【Docker/Mac】Dockerコマンド

どうも中田です。 今回はDocker。 巷でよく話には出てましたが使ってみるとめ …

no image

[Rails]link_toをhelperから使う

こんばんは Railsでviewを作成している時に、helperからlink_t …

no image

Macで簡単にIE環境を構築する手順

こんにちは、コーテッグの小山です。 今までちょろっとIE対応をやることはあったの …

no image

[JavaScript]IEのif文の判定がchromeと違う?

こんにちは、コーテッグのこやまです。 今持っている案件で、IE対応を進めているの …

【ionic】バックボタンの文字だけ消す

どうも中田です。 今回はHTML5ハイブリッド開発でお馴染みのionicについて …