/quick-ca-signer

Tool to create your own ssl certificate

Primary LanguageShell

SSL证书颁发工具

这个工程构建了一系列脚本工具,用来管理SSL证书的相关事宜。

Install

将工程git clone下来,然后运行

sudo ./install.sh -l

或者直接运行

sudo su
bash <(curl -sL https://github.com/huangy10/quick-ca-signer/raw/master/install.sh)

这个命令会自动拉取相关代码并完成安装。

安装完成后应该就能使用woodyssl命令了。使用方法查看woodyssl -h

Quick Start

$ woodyssl -c -subj "/C=CN/ST=Beijing/L=Beijing/O=Tsinghua/CN=Vlion Club"
$ woodyssl -c -d yourdomain.com
$ woodyssl -l
yourdomain.com
$ woodyssl -d yourdomain.com -e path/to/export/certficates

Advanced Usage

导出根证书

$ woodyssl -e path/to/export/root-ca

导入已经存在的根证书

$ woodyssl --ca path/to/root-ca -i

注意这里要求根证书相关文件命名为root-ca.crtroot-ca.key。你也可以不导入直接从指定根证书上创建站点证书

$ woodyssl -d yourdomain.com -c --ca path/to/root-ca