certbot
可自动续期
安装
yum install certbot -y
- 申请证书(申请前请确保80端口和443端口没用被占用)
certbot certonly -d git.z7ge.com
- 证书目录在/etc/letsencrypt/live/git.z7ge.com/
- 使用cron任务给证书自动续期
0 0 * * * 'systemctl stop nginx; /bin/certbot renew; systemctl restart nginx'
别的第三方脚本
acme