| ndnsec-cert-gen |
| =============== |
| |
| ``ndnsec-cert-gen`` is a tool to issue an identity certificate. |
| |
| Usage |
| ----- |
| |
| :: |
| |
| $ ndnsec-cert-gen [-h] [-S timestamp] [-E timestamp] [-I info] [-s sign-id] [-i issuer-id] request |
| |
| Description |
| ----------- |
| |
| ``ndnsec-cert-gen`` takes signing request as input and issues an identity certificate for the key in |
| the signing request. The signing request can be created during ``ndnsec-keygen`` and can be |
| re-generated with ``ndnsec-sign-req``. |
| |
| By default, the default key/certificate will be used to sign the issued certificate. |
| |
| ``request`` could be a path to a file that contains the signing request. If ``request`` is ``-``, |
| then signing request will be read from standard input. |
| |
| The generated certificate will be written to standard output in base64 encoding. |
| |
| Options |
| ------- |
| |
| ``-S timestamp`` |
| Timestamp when the certificate becomes valid. The default value is now. |
| |
| ``-E timestamp`` |
| Timestamp when the certificate expires. The default value is one year from now. |
| |
| ``-I info`` |
| Other information to be included in the issued certificate. For example, |
| |
| :: |
| |
| -I "affiliation Some Organization" -I "homepage http://home.page/" |
| |
| ``-s sign-id`` |
| Signing identity. The default key/certificate of ``sign-id`` will be used to sign the requested |
| certificate. If this option is not specified, the system default identity will be used. |
| |
| ``-s issuer-id`` |
| Issuer's ID to be included as part of the issued certificate name. If not specified, "NA" |
| value will be used |
| |
| Examples |
| -------- |
| |
| :: |
| |
| $ ndnsec-cert-gen -S 20140401000000 -E 20150331235959 -N "David" |
| -I "2.5.4.10 'Some Organization'" -s /ndn/test sign_request.cert |
| Bv0C9wc9CANuZG4IBHRlc3QIA0tFWQgFZGF2aWQIEWtzay0xMzk2OTEzMDU4MTk2 |
| CAdJRC1DRVJUCAgAAAFFPp2g3hQDGAECFf0BdjCCAXIwIhgPMjAxNDA0MDEwMDAw |
| MDBaGA8yMDE1MDMzMTIzNTk1OVowKDAMBgNVBCkTBURhdmlkMBgGA1UEChMRU29t |
| ZSBPcmdhbml6YXRpb24wggEgMA0GCSqGSIb3DQEBAQUAA4IBDQAwggEIAoIBAQC0 |
| ur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