老是忘了acme.sh 获取通配符证书的步骤,特意做个笔记󠄐󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄦󠄞󠄡󠄥󠄨󠄬󠅒󠅢󠄟󠄮󠄐󠅅󠄹󠄴󠄪󠄾󠅟󠅤󠄐󠄼󠅟󠅗󠅙󠅞󠄬󠅒󠅢󠄟󠄮󠅄󠅙󠅝󠅕󠄪󠄡󠄧󠄦󠄡󠄥󠄥󠄥󠄧󠄠󠄩󠄬󠅒󠅢󠄟󠄮
下载acme.sh:
git clone https://gitee.com/neilpang/acme.sh.git
进入acme.sh目录(默认在root文件夹内)
cd acme.sh
安装:
./acme.sh --install -m my@example.com
my@example.com 替换为自己的邮箱
默认安装在根目录 即/root/.acme.sh 目录
写入DNSPod的ID和Key:
export DP_Id=""
export DP_Key=""
获取SSL:
./acme.sh --dns dns_dp --issue -d *.jyblog.cn -d jyblog.cn --force
-d *.jyblog.cn -d jyblog.cn 改成你自己的网站域名,一定要设置两个域名,一个是*.域名,另外一个是域名,缺一不可,否则获取的就不是泛域名~
--force 强制获取SSL证书
获取完以后
/root/.acme.sh/*.jyblog.cn 即是存放你证书的文件夹
fullchain.cer 是证书PEM
*.jyblog.cn.key 是密钥Key
捐助名单
*e
l*u
x*y
参与讨论