@@ -4,23 +4,23 @@ ndnsec-cert-gen
44Synopsis
55--------
66
7- **ndnsec- cert-gen ** [**-h **] [**-S ** *timestamp *] [**-E ** *timestamp *]
7+ **ndnsec cert-gen ** [**-h **] [**-S ** *timestamp *] [**-E ** *timestamp *]
88[**-I ** *info *]... [**-s ** *signer *] [**-i ** *issuer *] *file *
99
1010Description
1111-----------
1212
13- :program: ` ndnsec-cert-gen ` takes a signing request as input and issues an
14- identity certificate for the key in the signing request. The signing request
15- can be created with :program: `ndnsec-key-gen ` and can be re-generated with
16- :program: `ndnsec-sign-req `.
13+ This command takes a signing request as input and issues an identity certificate for
14+ the key contained in the signing request.
15+ A signing request is generated automatically by :program: `ndnsec-key-gen ` for any new
16+ key, or it can be manually created for an existing key with :program: `ndnsec-sign-req `.
1717
18- By default , the default key is used to sign the issued certificate.
18+ Unless specified otherwise , the default key is used to sign the issued certificate.
1919
20- *file * is the name of a file that contains the signing request. If * file * is
21- "-", the signing request is read from the standard input.
20+ *file * is the name of a file that contains the signing request.
21+ If * file * is "-", the signing request is read from the standard input.
2222
23- The generated certificate is written to the standard output in base64 encoding.
23+ The generated certificate is written to the standard output in Base64 encoding.
2424
2525Options
2626-------
@@ -33,7 +33,7 @@ Options
3333.. option :: -E <timestamp >, --not-after <timestamp >
3434
3535 Date and time when the certificate expires, in "YYYYMMDDhhmmss" format.
36- The default value is 365 days after the ** --not-before ** timestamp.
36+ The default value is 365 days after the :option: ` --not-before ` timestamp.
3737
3838.. option :: -I <info >, --info <info >
3939
@@ -57,12 +57,12 @@ Options
5757 Issuer's ID to be included in the issued certificate name. The default
5858 value is "NA".
5959
60- Example
61- -------
60+ Examples
61+ --------
6262
6363::
6464
65- $ ndnsec- cert-gen -S 20200501000000 -E 20210101000000 -I "affiliation Some Organization" -I "foobar Foo Bar" -i "Universe" -s /ndn/test request.cert > signed.cert
65+ $ ndnsec cert-gen -S 20200501000000 -E 20210101000000 -I "affiliation Some Organization" -I "foobar Foo Bar" -i "Universe" -s /ndn/test request.cert > signed.cert
6666
6767 $ cat signed.cert
6868 Bv0BcgctCAdleGFtcGxlCANLRVkICOQUmX8oloLrCAhVbml2ZXJzZQgJ/QAAAXHR
@@ -74,7 +74,7 @@ Example
7474 YXL9AgIHRm9vIEJhchdHMEUCIQDPT9Hq1kvkE0r9W1aYSBVTnHlTEzgtz+v1DwkC
7575 ug/vLAIgY3xJITCwf55sqey33q5GIQSk1TRCkNNl58ojvPs5sNU=
7676
77- $ ndnsec- cert-dump -p -f signed.cert
77+ $ ndnsec cert-dump -p -f signed.cert
7878 Certificate Name:
7979 /example/KEY/%E4%14%99%7F%28%96%82%EB/Universe/%FD%00%00%01q%D1%02N%82
8080 Additional Description:
@@ -90,3 +90,11 @@ Example
9090 Signature Information:
9191 Signature Type: SignatureSha256WithEcdsa
9292 Key Locator: Name=/ndn/test/KEY/I%3FS%9A%28%BB%9A%95
93+
94+ See Also
95+ --------
96+
97+ :manpage: `ndnsec-cert-dump(1)`,
98+ :manpage: `ndnsec-cert-install(1)`,
99+ :manpage: `ndnsec-key-gen(1)`,
100+ :manpage: `ndnsec-sign-req(1)`
0 commit comments