1、先更新certbot
很可能无法直接更新
Couldn't download https://raw.githubusercontent.com/certbot/certbot/v1.3.0/letsencrypt-auto-source/letsencrypt-auto. <urlopen error timed out>默认的更新升级网址我这里是不行的反正,我们可以换个地址:
# wget https://dl.eff.org/certbot-auto # chmod a+x certbot-auto
2、再次renew
如果还不行出现 unauthorized的错误的话,就直接再生成一遍证书
./certbot-auto certonly --email email@qq.com --agree-tos --webroot -w /home/wwwroot/m.xxx.com/ -d m.xx.com如果不想每次续期都升级可以加
certbot-auto renew --no-self-upgrade