VPS通过Certbot自动申请及更新HTTPS网站SSL证书
参考:https://developer.aliyun.com/article/1676749 安装 Certbot 不同系统安装方式略有不同,这里给你 CentOS / RHEL 和 Debian / Ubuntu 的常用方法。 CentOS / RHEL 7/8/9 1 2 3 4 # 安装 EPEL sudo yum install epel-release -y # 安装 Certbot 和 Nginx 插件(如果用 Apache 就换成 python3-certbot-apache) sudo yum install certbot python3-certbot-nginx -y Debian / Ubuntu 1 2 sudo apt update sudo apt install certbot python3-certbot-nginx -y 申请 SSL 证书 如果你用 Nginx: 1 sudo certbot --nginx -d [example.com](http://example.com/) -d [www.example.com](http://www.example.com/) -d 参数后面写你的域名(可以多个) ...