-
Notifications
You must be signed in to change notification settings - Fork 15
Home
南琴浪 edited this page Jun 16, 2018
·
1 revision
acme.sh 是一款用于签发 Let's Encrypt
证书的脚本。本脚本是原项目的生成证书指令的集合。
原项目 https://github.com/Neilpang/acme.sh
本项目 https://github.com/nanqinlang-script/acme
使用此脚本,只需运行如下:
wget https://raw.githubusercontent.com/nanqinlang-script/acme/master/acme_2.0.sh
bash acme_2.0.sh
按照以下步骤:
- 输入你的域名
- 选择要生成证书的类型。输入数字
0
(生成 RSA 类型) 或1
(生成 ECC 类型)。若未选择则默认生成 RSA 类型 - 用
DNS
方式验证域名所有权:添加脚本中显示的绿色字体的 TXT 记录
,添加完成后稍等下(等个五分钟应该够了),回车继续 - SSL 证书文件生成至
/home/your-domain_rsa
或/home/your-domain_ecc
路径下
生成的文件中:
-
ca.cer
:中间证书 -
yourdomain.key
:证书密钥 -
yourdomain.cer
:站点证书