Skip to content

tianyage/PKI_CA

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

PKI_CA 基于 Ubuntu 自建三级CA架构

1. 下载脚本

root 用户登录

cd /root/
git clone https://github.com/hittimes/PKI_CA.git
cd PKI_CA/tools

chmod +x gen*.sh

2. 创建 根CA

cd /root/PKI_CA/tools

./gen-root-ca.sh

# 按提示输入CA 信息

2. 创建 二级CA(WEB SSL CA)

cd /root/PKI_CA/tools

./gen-ssl-ca.sh

# 按提示输入CA 信息

3. 创建 用户证书(WEB SSL Cert)

cd /root/PKI_CA/tools

# 在 domains.txt 中修改服务器域名信息
[ alt_names ]
DNS.1=example.com
DNS.2=www.example.com

# ./gen-server-cert.sh 证书文件名 证书CommonName(CN)
./gen-server-cert.sh myweb www.example.com

# 按提示输入证书信息
# 按提示输入SSL CA 私钥密码,用于签发用户证书

# 签发好的证书保存在 /root/ssl_ca/output

About

自建三级CA架构

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%