用certbot生成Let's Encrypted证书并配置好nginx
1 | yum -y install yum-utils |
配置证书 certbot --nginx
根据提示生成证书
配置定时续约证书
crontab -e
1 | 0 0,12 * * * python -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew |
好了没了,就这么简单
1 | yum -y install yum-utils |
配置证书 certbot --nginx
根据提示生成证书
配置定时续约证书
crontab -e
1 | 0 0,12 * * * python -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew |
好了没了,就这么简单