How Can We Help?

Let’s encrypt 遇到 ‘ascii’ codec can’t decode byte 0xe5 的解法

You are here:
< All Topics

Let’s encrpyt 更新憑證的時候,跳出以下錯誤訊息:

Attempting to renew cert (example.com) from /etc/letsencrypt/renewal/example.com.conf produced an unexpected error: ‘ascii’ codec can’t decode byte 0xe5 in position 2: ordinal not in range(128). Skipping.

解法

  1. $ sudo grep -r -P ‘[^\x00-\x7f]’ /etc/apache2 /etc/letsencrypt /etc/nginx
  2. 將看到的內容,進去檔案刪除
  3. 刪除這些編碼後,重新執行 certbot 就可以通過囉~
Table of Contents