Rocky网站配置https

Rocky网站配置https

本文字数:95  阅读时长:1分钟

访客数:加载中... | 阅读量:加载中...


配置 HTTPS(Let’s Encrypt)
安装 Certbot
CentOS 7:
sudo yum install -y certbot python2-certbot-nginx
CentOS Stream 8+ / Rocky Linux 8+:
sudo dnf install -y certbot python3-certbot-nginx

申请并自动配置 SSL 证书

text
sudo certbot --nginx -d www.your-domain.com -d your-domain.com
```<br>
验证证书自动续期<br>

sudo certbot renew –dry-run```