certbot
只生成证书
certbot certonly --nginx -d guac.bih.cn
手动配置nginx 加密页面
server {
listen 443 ssl;
server_name guac.bih.cn;
ssl_certificate /etc/letsencrypt/live/guac.bih.cn/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/guac.bih.cn/privkey.pem;
# 其他 Nginx 配置...
}
更新证书
apache2 更新证书
certbot --apache -d cactinew.bih.cn
nginx 更新证书
/usr/bin/certbot renew