1 Star 4 Fork 2

eaglet / kubernetes

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.38 KB
一键复制 编辑 原始数据 按行查看 历史
eaglet 提交于 2020-05-30 19:14 . 2020053001

使用GMSSL工具生成自签证书工具(Windows版)

支持Win10

配置方法:

首先复制openssl.cnf到C:\Program Files (x86)\Common Files\SSL文件夹,没有的话就创建这个文件夹

使用CMD(管理员模式运行)

使用方法

生成SM2密钥并签名

#生成密钥对
G:\gmssl>gmssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:sm2p256v1 -pkeyopt ec_param_enc:named_curve -out ca-key.pem

#生成CA证书
G:\gmssl>gmssl req -new -x509 -key ca-key.pem -out ca.pem
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [CN]:CN
State or Province Name (full name) [Some-State]:China
Locality Name (eg, city) []:Tianjin
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Tianjin
Organizational Unit Name (eg, section) []:k8s
Common Name (e.g. server FQDN or YOUR name) []:e4glet
Email Address []:xxxxx@qq.com
其他
1
https://gitee.com/e4glet/kubernetes.git
git@gitee.com:e4glet/kubernetes.git
e4glet
kubernetes
kubernetes
master

搜索帮助