申请完证书后,续签时,先将自动生成的私钥复制一份到一个新的文件夹,然后指定参数如下进行续签:


sudo mkdir -p /etc/my-certbot-private-key

sudo cp /etc/letsencrypt/live/<your domain>/privkey.pem /etc/my-certbot-private-key

ls /etc/my-certbot-private-key

sudo certbot renew --key-path=/etc/my-certbot-private-key/privkey.pem