- Clone this repo
- Run make
- Locate the binary in the bin directory
- Add the binary to your PATH
- Execute dcm for more information
dcm [command]
Available Commands:
certificate The command line interface for certificate management help Help about any command version Print dcm command version
dcm certificate renew [flags]
Flags: -d, --days int Number date expire of new certificate (default 1) -h, --help help for renew --old-cert string Path to certificate of old certificate that need to renew --old-private-key string Path to private key of old certificate -o, --output string Path to output file of new certificate (default ".dcm/output/renew-cert.pem") --parent-cert string Path to parent certificate (CA or ICA) --parent-private-key string Path to private key of parent certificate (CA or ICA)
Example command renew expire date of peer certificate:
dcm certificate renew --parent-cert=../data/intermediate-ca/signcerts/ica-cert.pem
--parent-private-key=../data/intermediate-ca/keystore/ica-key.pem
--old-cert=../data/peer/output/peer-cert.pem
--old-private-key=../data/peer/keystore/peer-key.pem
--output=../data/peer/output/renew-peer-cert.pem
--days=365
dcm certificate inspect [flags]
Flags: -c, --cert string Path to your certificate -h, --help help for inspect
Example command inspect of peer certificate:
dcm certificate inspect -c=../data/peer/output/peer-cert.pem
dcm certificate check [flags]
Flags: -c, --cert-path string Path to your certificate -f, --folder-cert string Path to folder have certificates -h, --help help for check
Example command check expire date of peer certificate:
dcm certificate check -c=../data/peer/output/renew-peer-cert.pem
dcm certificate check -f=../data/peer/output