ssl - certbot 更新/certonly 破折号错误 : 'ascii' codec can't decode byte

标签 ssl character-encoding ascii lets-encrypt certbot

我在 lets-encrypt certbot 上遇到了一个奇怪的错误,它似乎与我的第二个域名中存在破折号有关(在真实的位置 8 对应于所述破折号的位置)。

无论我尝试续订还是创建新证书,都会发生错误。原始(功能)证书是使用 certbot no pb 生成的...

./certbot-auto certonly --nginx -d domain1 -d domain2
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Cert is due for renewal, auto-renewing...
Renewing an existing certificate
Performing the following challenges:
tls-sni-01 challenge for domain1
tls-sni-01 challenge for domain-2
Cleaning up challenges
An unexpected error occurred:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 8: ordinal not in range(128)

我可以从这里做什么?

最佳答案

我确实在那个文件中有一个非 ascii 字符,对于此类问题有用的命令是:

grep -nRP '[\x80-\xFF]' /etc/nginx

/etc/nginx 是您要查找非 ascii 字符的目录/文件。 [\x80-\xFF] 是您要查找的范围(在本例中为非 ascii)。

关于ssl - certbot 更新/certonly 破折号错误 : 'ascii' codec can't decode byte,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48932512/

相关文章:

python - 如何在 Python 中检测非 ASCII 字符?

ssl - 如何在 mosquitto (MQTT) 代理上设置 TLS?

windows - 非 TLS 1.3 Azure 存储库上的 TLS1.3 错误 'Wrong version number'

java - 我如何确定语言环境的字母表在 Java 中是什么?

c - 如何将char转换为int,然后以十六进制格式显示

java - 如果字符串仅包含 ASCII 字符集则匹配

使用 Eclipse Paho JavaScript 客户端的 SSL/TLS

security - Amazon Linux 支持的 SSL 中等强度密码套件

python - 使用 Python CSV 模块读取带有 BOM 的 UTF-8 会导致不需要的额外字符

c - 如何使用简单的转义序列对东欧(波兰)符号进行编码?