質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.39%
Postfix

Postfixは、電子メールサーバソフトウェアで、 メールを配送するシステムMTAの一種です。

Q&A

解決済

1回答

163閲覧

letsencrypt certbot renew --dry-runでエラーがでる

txty

総合スコア302

Postfix

Postfixは、電子メールサーバソフトウェアで、 メールを配送するシステムMTAの一種です。

0グッド

0クリップ

投稿2024/10/21 02:57

編集2024/10/21 06:26

実現したいこと

postfixでletsencryptを使いたいです。
letsencrypt のsudo certbot renew --dry-run をすると、
エラーが出ます。エラーを改善したいです。

sudo certbot renew
では 

certificate not yet due for renewal

sudo certbot certonly --manual --preferred-challenges dns -d ドメインでは、

1.Keep the existing certificate for now
2.Renew & replace the certificate (may be subject to CA rate limits)

1か2か分からないんですけど、1を選んだ場合、 certificate not yet due for renewal でした。 certificate not yet due for renewal でした。

sudo certbot certonly --webroot -w /var/www/html -d ドメインでは
1.Keep the existing certificate for now
2.Renew & replace the certificate (may be subject to CA rate limits)

1か2か分からないんですけど、1を選んだ場合、 certificate not yet due for renewal でした。

 

発生している問題・分からないこと

letsencrypt のsudo certbot renew --dry-runをしたときのエラーが発生する。

エラーメッセージ

error

1- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2Processing /etc/letsencrypt/renewal/ドメイン.conf 3- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4Failed to renew certificate ドメイン with error: The manual plugin is not working; there may be problems with your existing configuration. 5The error was: PluginError('An authentication script must be provided with --manual-auth-hook when using the manual plugin non-interactively.') 6 7- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 8All simulated renewals failed. The following certificates could not be renewed: 9 /etc/letsencrypt/live/ドメイン/fullchain.pem (failure) 10- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 111 renew failure(s), 0 parse failure(s)

該当のソースコード

特になし

試したこと・調べたこと

  • teratailやGoogle等で検索した
  • ソースコードを自分なりに変更した
  • 知人に聞いた
  • その他
上記の詳細・結果

sudo certbot certonly --manual --preferred-challenges dnsでletsencryptをいれたつもりでした。
ファイアウォールの80番は開いていますし,postfixのmain.cfにletsencriptの設定も書きましたし、mydnsに、設定も書きました。レコードは、_acme-challenge txt トークンとしました。

補足

copilotにコマンドを聞きながら、調べましたが解決しませんでした。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

maisumakun

2024/10/21 02:59

エラーメッセージはコピペで書きましたか? (スペルミスが散見されて、打ち直しているもののように見受けられました)
txty

2024/10/21 03:12 編集

maisumakun様 手打ちしてしまいました。時間があるときに直します。
maisumakun

2024/10/21 03:59

manualプラグインの設定内容はどのような感じでしょうか?
txty

2024/10/21 04:21

すいません。letsencryptは初心者すぎて、manualプラグインが分かりません。開き方等、指示をしてもらえれば、ありがたいです。
guest

回答1

0

ベストアンサー

こちらに書かれているように、certbot renew--manualと併用するには、それ相応のスクリプトを用意する必要があります。

現実問題として、--manualを自動化するのは難しい場面も多いので、更新時にもrenewを指定せず、certbot --manualで実行することをおすすめします。

投稿2024/10/21 04:29

maisumakun

総合スコア145830

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

maisumakun

2024/10/21 04:31

> 1を選んだ場合、 certificate not yet due for renewal でした。 文字通り、「まだ更新するほどのタイミングではない」という意味です。期限が近づくまで放置して問題はありません。
txty

2024/10/21 05:23 編集

回答ありがとうございます!!sudo certbot renew --manualは、それ相応のスクリプトを用意する必要があることがわかりました。最後にききたいのですがcertbot --manualのコマンド例で動くものを提示してもらうことは可能でしょうか。sudo certbot certonly --manual --preferred-challenges dnsを使えばいいですか。(回答から分かったことをcopilotで少し 調べました。)
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.39%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問