要在Debian上更新Nginx SSL证书,请按照以下步骤操作:
sudo apt update
sudo apt install certbot python3-certbot-nginx
sudo apt update
sudo certbot --nginx -d yourdomain.com -d www.yourdomain.com
将yourdomain.com
和www.yourdomain.com
替换为您的实际域名。
Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/yourdomain.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/yourdomain.com/privkey.pem
Your certbot Apache configuration file was successfully updated.
sudo systemctl reload nginx
现在,您的Nginx SSL证书应该已经更新。请确保您的网站可以通过HTTPS正常访问,并检查证书是否已正确安装。