标签:根证书 配置文件 usr root init cer 命令 ssl names
#CFSSL
wget "https://pkg.cfssl.org/R1.2/cfssl_linux-amd64" -O /usr/bin/cfssl
#CFSSL-json
wget "https://pkg.cfssl.org/R1.2/cfssljson_linux-amd64" -O /usr/bin/cfssl-json
#CFSSL-certinfo
wget "https://pkg.cfssl.org/R1.2/cfssl-certinfo_linux-amd64" -O /usr/bin/cfssl-certinfo
#给执行权限
chmod +x /usr/bin/cfssl*
#查看路径
which cfssl,cfssl-json,cfssl-certinfo
mkdir -p /opt/certs
vi ca-csr.json
{
"CN": "KevinEdu",
"hosts": [ ],
"key": {
"algo": "rsa",
"size": 2048
},
"names": [
{
"C": "CN",
"ST": "YN",
"L": "KM",
"O": "kevin",
"OU": "edu"
}
],
"ca": {
"expiry": "175200h"
}
}
[root@yn101-100 certs]# cfssl gencert -initca ca-csr.json | cfssl-json -bare ca
[root@yn-100 certs]# ls
ca.csr ca-csr.json ca-key.pem ca.pem
项目环境搭建【Docker+k8s】三 || 准备签发证书环境
标签:根证书 配置文件 usr root init cer 命令 ssl names
原文地址:https://www.cnblogs.com/kevin-ying/p/12343580.html