acme.sh 国内获取免费通配符证书笔记

acme.sh 国内获取免费通配符证书笔记

To do the useful thing, to say the courageous thing, to contemplate the beautiful thing: that’s enough for one man’s life.
做有用的事,说勇敢的话,想美好的事,一生足矣

老是忘了acme.sh󠄐󠄹󠅀󠄪󠄥󠄢󠄞󠄨󠄠󠄞󠄡󠄤󠄤󠄞󠄢󠄠󠄧󠄬󠅒󠅢󠄟󠄮󠄐󠅅󠄹󠄴󠄪󠄾󠅟󠅤󠄐󠄼󠅟󠅗󠅙󠅞󠄬󠅒󠅢󠄟󠄮󠅄󠅙󠅝󠅕󠄪󠄡󠄧󠄤󠄡󠄩󠄨󠄥󠄡󠄧󠄥󠄬󠅒󠅢󠄟󠄮󠇕󠅰󠆖󠇖󠅴󠅿󠇕󠅽󠆊󠇕󠆞󠆒󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠄬󠅒󠅢󠄟󠄮 获取通配符证书的步骤,特意做个笔记

下载acme.sh:

git clone https://gitee.com/neilpang/acme.sh.git
cd acme.sh
git clone https://gitee.com/neilpang/acme.sh.git
cd acme.sh
git clone https://gitee.com/neilpang/acme.sh.git cd acme.sh

安装:

./acme.sh --install -m my@example.com
./acme.sh --install -m my@example.com
./acme.sh --install -m my@example.com

my@example.com 替换为自己的邮箱

默认安装在根目录 即/root/.acme.sh 目录

写入DNSPod的IDKey

export DP_Id=""
export DP_Key=""
export DP_Id=""
export DP_Key=""
export DP_Id="" export DP_Key=""

获取SSL:

./acme.sh --dns dns_dp --issue -d *.jyblog.cn -d jyblog.cn
./acme.sh --dns dns_dp --issue -d *.jyblog.cn -d jyblog.cn
./acme.sh --dns dns_dp --issue -d *.jyblog.cn -d jyblog.cn

-d *.jyblog.cn -d jyblog.cn 改成你自己的网站域名,一定要设置两个域名,一个是*.域名,另外一个是域名,缺一不可,否则获取的就不是泛域名~

获取完以后

/root/.acme.sh/*.jyblog.cn 即是存放你证书的文件夹

fullchain.cer 是证书PEM

*.jyblog.cn.key 是密钥Key

© 版权声明
THE END
喜欢就支持一下吧
点赞0分享
评论 共2条

请登录后发表评论