| ndnsec-cert-gen |
| =============== |
| |
| Synopsis |
| -------- |
| |
| **ndnsec-cert-gen** [**-h**] [**-S** *timestamp*] [**-E** *timestamp*] |
| [**-I** *info*]... [**-s** *signer*] [**-i** *issuer*] *file* |
| |
| Description |
| ----------- |
| |
| :program:`ndnsec-cert-gen` takes a signing request as input and issues an |
| identity certificate for the key in the signing request. The signing request |
| can be created with :program:`ndnsec-key-gen` and can be re-generated with |
| :program:`ndnsec-sign-req`. |
| |
| By default, the default key is used to sign the issued certificate. |
| |
| *file* is the name of a file that contains the signing request. If *file* is |
| "-", the signing request is read from the standard input. |
| |
| The generated certificate is written to the standard output in base64 encoding. |
| |
| Options |
| ------- |
| |
| .. option:: -S <timestamp>, --not-before <timestamp> |
| |
| Date and time when the certificate becomes valid, in "YYYYMMDDhhmmss" format. |
| The default value is now. |
| |
| .. option:: -E <timestamp>, --not-after <timestamp> |
| |
| Date and time when the certificate expires, in "YYYYMMDDhhmmss" format. |
| The default value is 365 days after the **--not-before** timestamp. |
| |
| .. option:: -I <info>, --info <info> |
| |
| Other information to be included in the issued certificate. For example:: |
| |
| -I "affiliation Some Organization" -I "homepage http://home.page/" |
| |
| .. option:: -s <signer>, --sign-id <signer> |
| |
| Signing identity. The default key/certificate of *signer* will be used to |
| sign the requested certificate. If this option is not specified, the system |
| default identity will be used. |
| |
| .. option:: -i <issuer>, --issuer-id <issuer> |
| |
| Issuer's ID to be included in the issued certificate name. The default |
| value is "NA". |
| |
| Example |
| ------- |
| |
| :: |
| |
| $ ndnsec-cert-gen -S 20140401000000 -E 20150331235959 -N "David" |
| -I "2.5.4.10 'Some Organization'" -s /ndn/test request.cert |
| Bv0C9wc9CANuZG4IBHRlc3QIA0tFWQgFZGF2aWQIEWtzay0xMzk2OTEzMDU4MTk2 |
| CAdJRC1DRVJUCAgAAAFFPp2g3hQDGAECFf0BdjCCAXIwIhgPMjAxNDA0MDEwMDAw |
| MDBaGA8yMDE1MDMzMTIzNTk1OVowKDAMBgNVBCkTB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