acme.sh 是一款用于签发 Let's Encrypt
证书的脚本。本脚本是原项目的生成证书指令的集合。
原项目 https://github.com/Neilpang/acme.sh
本项目 https://github.com/nanqinlang-script/acme
使用此脚本,只需运行如下:
wget https://github.com/nanqinlang-script/acme/releases/download/1.6/acme_1.6.sh
bash acme_1.6.sh
|
使用说明
按照以下步骤:
- 输入你的域名
- 选择要生成证书的类型。输入数字
0
(生成 RSA 类型) 或1
(生成 ECC 类型)。若未选择则默认生成 RSA 类型 - 用
DNS
方式验证域名所有权:添加脚本中显示的绿色字体的 TXT 记录
,添加完成后稍等下(等个五分钟应该够了),回车继续 - SSL 证书文件生成至
/home/your-domain_rsa
或/home/your-domain_ecc
路径下
生成的文件中:
ca.cer
:中间证书yourdomain.key
:证书密钥yourdomain.cer
:站点证书fullchain.cer
:也是站点证书
来自: https://sometimesnaive.org/article/linux/bash/acme