aditosoftware/nodepki: NodePKI is a simple NodeJS based PKI manager for small corporate environments. (github.com)](https://github.com/WillZhuang/nodepki) NodePKI 是一个简单的基于 NodeJS 的 PKI 管理器,适用于小型企业环境。
Requirements
Linux OS
NodeJS
NPM
OpenSSL
Setup
1 2 3
git clone https://github.com/aditosoftware/nodepki.git cd nodepki npm install
命令: request Request a new certificate with or without .csr file list List issued certificates get Get issued certificate by serial number revoke Revoke certificate via cert file getcacert Get CA certificate
选项: -h, --help 显示帮助信息 [布尔]
创建证书(与私钥)
Create new key + certificate from scratch and store both in out/ directory. Lifetime: 7 days.
1
node client request --lifetime 7 --out out/
Create new key + certificate from scratch, add intermediate cert to cert and store in out/ directory
1
node client request --out out/ --fullchain
Lifetime defaults to cert_lifetime_default setting in config.yml
Create a new client certificate:
1
node client request --type client --out out/
获取发布的证书
1
node client list --state all
可用的状态 Valid states:
all
valid
expired
revoked
1
node client list --state valid
获取证书 Get certificate by serial number
… and store certificate to out/cert.pem
1
node client get --serialnumber 324786EA --out out/cert.pem