《证书工具pkcs发布》要点:
本文介绍了证书工具pkcs发布,希望对您有用。如果有疑问,可以联系我们。
在搭建自己的CA服务-OpenSSL CA实战 文章中介绍了如何使用openssl工具来生成CA以及使用CA签发证书.
最近自己在项目中也经常遇到同事要求给颁发一个证书,索性写了一个工具,需要的人可以安装,自助颁发证书.
sudo pip install pkcs
安装后使用安装之后提供 pkcs
命令, pkcs
命令有两个子命令
pkcs ca
生成CApkcs cert
使用CA签发证书usage: pkcs ca [-h] [-root CAROOT] [-len LEN] [-c C] [-st ST] [-l L] [-o O]
[-ou OU] [-cn CN]
pkcs tool set
optional arguments:
-h, --help show this help message and exit
-root CAROOT, --ca-root CAROOT
ca output path
-len LEN, --key-len LEN
ca key length
-c C, --country C country name in subject
-st ST, --state ST state or province name in subject
-l L, --locality L locality name in subject
-o O, --organization O
organization name in subject
-ou OU, --organization-unit OU
organization unit name in subject
-cn CN, --common-name CN
common name in subject
usage: pkcs cert [-h] [-ca-key CAKEY] [-ca-cert CACERT] [-ca-conf CACONF]
[-cert-out CERTOUT] [-len LEN] [-c C] [-st ST] [-l L] [-o O]
[-ou OU] [-cn CN]
pkcs tool set
optional arguments:
-h, --help show this help message and exit
-ca-key CAKEY, --ca-key CAKEY
ca key for sign cert
-ca-cert CACERT, --ca-cert CACERT
ca cert for sign cert
-ca-conf CACONF, --ca-conf CACONF
ca openssl.conf file path
-cert-out CERTOUT, --cert-out CERTOUT
cert output path
-len LEN, --key-len LEN
ca key length
-c C, --country C country name in subject
-st ST, --state ST state or province name in subject
-l L, --locality L locality name in subject
-o O, --organization O
organization name in subject
-ou OU, --organization-unit OU
organization unit name in subject
-cn CN, --common-name CN
common name in subject
如果大家对pkcs工具有疑问,欢迎在这里留言交流.
转载请注明本页网址:
http://www.vephp.com/jiaocheng/4097.html