• Skip to primary navigation
  • Skip to main content

桓桓鄉寇

如果一開始沒有高牆,就沒有所謂的侵略了嗎?

  • 首頁
  • WordPress 筆記
  • 主機
  • 前端
  • 意見回饋
You are here: 首頁 / 主機 / Certbot 更新失敗 Missing command line flag or config entry for this setting

Certbot 更新失敗 Missing command line flag or config entry for this setting

2020-10-24 by Eric Chuang Leave a Comment

昨天在執行 Webinoly 的 SSL 更新語法 sudo site -ssl=renew 時,出現了以下錯誤:

Attempting to renew cert (huanyichuang.com) from /path/to/renewal/huanyichuang.com.conf produced an unexpected error: Missing command line flag or config entry for this setting:
Select the webroot for huanyichuang.com:
Choices: ['Enter a new webroot', '/path/to/webroot/']

(You can set this with the --webroot-path flag). Skipping.

後來上網找到這篇討論,暫時先透過手動的方式解決這個問題。

進一步了解後,發現是組態檔 /path/to/renewal/huanyichuang.com.conf 中的問題:

[renewalparams]
account = {{account}}
must_staple = True
authenticator = webroot
webroot = /path/to/webroot/
server = https://acme-v02.api.letsencrypt.org/directory
[[webroot_map]]
huanyichuang.com = /path/to/webroot/

根據這篇討論,應該要透過下方 [[webroot_map]] 來比對網站的根目錄,因此看起來 [renewalparams] 中的 webroot 屬性是造成的錯誤的來源。將之刪除後,重新執行 sudo site -ssl=renew 便沒有出現錯誤訊息了。

所屬分類: 主機 標籤: certbot

關於 Eric Chuang

正職是廣告行銷人員,因為 Google Tag Manager 的關係開始踏入網站製作的領域,進一步把 WordPress 當成 PHP + HTML + CSS + JavaScript 的學習教材。此外,因為工作的關係,曾經用 Automattic 的 Underscores (_s) 替客戶與公司官網進行全客製化佈景主題開發。

讀者互動

發佈留言 取消回覆

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

這個網站採用 Akismet 服務減少垃圾留言。進一步瞭解 Akismet 如何處理網站訪客的留言資料。

Copyright © 2021 · Genesis Sample on Genesis Framework · WordPress