续期Let's Encrypt报错
如果续期Let's Encrypt老是报如下错误:
Attempting to renew cert (laonan.net) from /etc/letsencrypt/renewal/laonan.net.conf produced an unexpected error: The manual plugin is not working; there may be problems with your existing configuration.
The error was: PluginError('An authentication script must be provided with --manual-auth-hook when using the manual plugin non-interactively.',). Skipping.
可以尝试这个命令重来一下
./certbot-auto --server https://acme-v02.api.letsencrypt.org/directory -d “*.laonan.net” --manual --preferred-challenges dns-01 certonly
这个过程中可能需要你设置一下域名的TXT记录(取决于你使用哪种验证方式),设置完成后,MacOS下查看TXT记录是否生效的命令如下:
dig -t txt _acme-challenge.laonan.net @8.8.8.8(不要用这个命令测试我博客域名,这个博客是采用的nginx设置well-known的方式...)