blob: 3c2eff8ff27088b9d339b1bf532da9635813ce56 [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
11 $ ndnsec-cert-gen [-h] [-S timestamp] [-E timestamp] [-N name] [-I info] [-s sign-id] request
12
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
27
28Options
29-------
30
31``-S timestamp``
32 Timestamp when the certificate becomes valid. The default value is now.
33
34``-E timestamp``
35 Timestamp when the certificate expires. The default value is one year from now.
36
37``-N name``
38 Name of the certificate owner.
39
40``-I info``
41 Other information about the certificate owner. ``subject-info`` is a list of pairs of OID and
42 corresponding value. For example, "2.5.4.10 'Some Organization' 2.5.4.3 'http://home.page/'".
43
44``-s sign-id``
45 Signing identity. The default key/certificate of ``sign-id`` will be used to sign the requested
46 certificate. If this option is not specified, the system default identity will be used.
47
48Examples
49--------
50
51::
52
53 $ ndnsec-cert-gen -S 20140401000000 -E 20150331235959 -N "David"
54 -I "2.5.4.10 'Some Organization'" -s /ndn/test sign_request.cert
55 Bv0C9wc9CANuZG4IBHRlc3QIA0tFWQgFZGF2aWQIEWtzay0xMzk2OTEzMDU4MTk2
56 CAdJRC1DRVJUCAgAAAFFPp2g3hQDGAECFf0BdjCCAXIwIhgPMjAxNDA0MDEwMDAw
57 MDBaGA8yMDE1MDMzMTIzNTk1OVowKDAMBgNVBCkTBURhdmlkMBgGA1UEChMRU29t
58 ZSBPcmdhbml6YXRpb24wggEgMA0GCSqGSIb3DQEBAQUAA4IBDQAwggEIAoIBAQC0
59 urnS2nKcnX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