blob: 25c6427a25eff087e5b415c4be01f04e6ed8e8b3 [file] [log] [blame]
Alexander Afanasyev151a8552014-04-11 00:54:43 -07001ndnsec-cert-gen
2===============
3
4``ndnsec-cert-gen`` is a tool to issue an identity certificate.
5
6Usage
7-----
8
9::
10
Alexander Afanasyev35109a12017-01-04 15:39:06 -080011 $ ndnsec-cert-gen [-h] [-S timestamp] [-E timestamp] [-I info] [-s sign-id] [-i issuer-id] request
Alexander Afanasyev151a8552014-04-11 00:54:43 -070012
13Description
14-----------
15
16``ndnsec-cert-gen`` takes signing request as input and issues an identity certificate for the key in
17the signing request. The signing request can be created during ``ndnsec-keygen`` and can be
18re-generated with ``ndnsec-sign-req``.
19
20By default, the default key/certificate will be used to sign the issued certificate.
21
22``request`` could be a path to a file that contains the signing request. If ``request`` is ``-``,
23then signing request will be read from standard input.
24
25The generated certificate will be written to standard output in base64 encoding.
26
Alexander Afanasyev151a8552014-04-11 00:54:43 -070027Options
28-------
29
30``-S timestamp``
31 Timestamp when the certificate becomes valid. The default value is now.
32
33``-E timestamp``
34 Timestamp when the certificate expires. The default value is one year from now.
35
Alexander Afanasyev151a8552014-04-11 00:54:43 -070036``-I info``
Alexander Afanasyev35109a12017-01-04 15:39:06 -080037 Other information to be included in the issued certificate. For example,
38
39 ::
40
41 -I "affiliation Some Organization" -I "homepage http://home.page/"
Alexander Afanasyev151a8552014-04-11 00:54:43 -070042
43``-s sign-id``
44 Signing identity. The default key/certificate of ``sign-id`` will be used to sign the requested
45 certificate. If this option is not specified, the system default identity will be used.
46
Alexander Afanasyev35109a12017-01-04 15:39:06 -080047``-s issuer-id``
48 Issuer's ID to be included as part of the issued certificate name. If not specified, "NA"
49 value will be used
Yingdi Yu0eb5d722014-06-10 15:06:25 -070050
Alexander Afanasyev151a8552014-04-11 00:54:43 -070051Examples
52--------
53
54::
55
56 $ ndnsec-cert-gen -S 20140401000000 -E 20150331235959 -N "David"
57 -I "2.5.4.10 'Some Organization'" -s /ndn/test sign_request.cert
58 B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