从泰迪LAMP 一键脚本看到的,目前其脚本已支持自动签发并续签,这里提一下怎么通过Certbot签发
目前签发方式:和lets差不多通过Certbot或acme.sh签发,官方提供API。
有效期:半年(可自动续期)
测试站点见最下方
下载Certbot
1.你也可以可以看Certbot官网的教程
2、执行命令
apt-get remove certbot
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
apt-get remove certbot
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
签发命令
1、签发命令
./certbot-auto register -m ‘YOUR_EMAIL’ –agree-tos –server ‘https://api.buypass.com/acme/directory’
./certbot-auto certonly –standalone –email ‘邮箱’ -d ‘域名’ –server ‘https://api.buypass.com/acme/directory’
./certbot-auto register -m ‘YOUR_EMAIL’ –agree-tos –server ‘https://api.buypass.com/acme/directory’
./certbot-auto certonly –standalone –email ‘邮箱’ -d ‘域名’ –server ‘https://api.buypass.com/acme/directory’
2、输出结果 去目录找证书就行
IMPORTANT NOTES:
– Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/buypass.oregai.ru/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/buypass.oregai.ru/privkey.pem
Your cert will expire on 2019-06-29. To obtain a new or tweaked
version of this certificate in the future, simply run certbot-auto
again. To non-interactively renew *all* of your certificates, run
“certbot-auto renew”
– If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let’s Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
IMPORTANT NOTES:
– Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/buypass.oregai.ru/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/buypass.oregai.ru/privkey.pem
Your cert will expire on 2019-06-29. To obtain a new or tweaked
version of this certificate in the future, simply run certbot-auto
again. To non-interactively renew *all* of your certificates, run
“certbot-auto renew”
– If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let’s Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
测试及说明
地址:https://buypass.oregai.ru
Myssl测试地址:https://myssl.com/buypass.oregai.ru
理论讲常用的脚本acme.sh也可以实现这个功能。但是官方教程使用Certbot的。建议访问官方教程获取更多命令