官网
https://letsencrypt.org/zh-cn/getting-started/
certbot实现
安装
https://certbot.eff.org/instructions?ws=nginx&os=centosrhel7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| yum install epel-release -y yum install yum-plugin-copr -y yum copr enable ngompa/snapcore-el7 yum -y install snapd systemctl enable --now snapd.socket
sudo setenforce 0 sudo snap install core; sudo snap refresh core snap install --classic certbot ln -s /snap/bin/certbot /usr/bin/certbot
certbot --manual --preferred-challenges dns certonly -d <domain>
Successfully received certificate. Certificate is saved at: /etc/letsencrypt/live/xxxxx.com/fullchain.pem Key is saved at: /etc/letsencrypt/live/xxxxx.com/privkey.pem
|
acme.sh实现
https://blog.csdn.net/yedajiang44/article/details/121173526
1 2 3 4 5 6 7 8 9
| curl https://get.acme.sh | sh -s email=my@example.com ln -s /root/.acme.sh/acme.sh /usr/local/bin/acme.sh export Ali_Key="xxx" export Ali_Secret="xxx"
acme.sh --issue --dns dns_ali -d xxx.xxx.com --debug
[15:54:04 root@centos7 ~] 53 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
|
ingress cert manager实现
https://blog.csdn.net/weixin_47003048/article/details/123947855