blob: d17ff3cc717db0ce52355343aa6729521c1203cf [file] [log] [blame]
Alexander Afanasyev151a8552014-04-11 00:54:43 -07001ndnsec-sign-req
2===============
3
Davide Pesaventob310efb2019-04-11 22:10:24 -04004Synopsis
5--------
Alexander Afanasyev151a8552014-04-11 00:54:43 -07006
Davide Pesaventob310efb2019-04-11 22:10:24 -04007**ndnsec-sign-req** [**-h**] [**-k**] *name*
Alexander Afanasyev151a8552014-04-11 00:54:43 -07008
9Description
10-----------
11
Davide Pesaventob310efb2019-04-11 22:10:24 -040012:program:`ndnsec-sign-req` generates a signing request for a key.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070013
Davide Pesaventob310efb2019-04-11 22:10:24 -040014The signing request of a key is actually a self-signed certificate. Given the
15key's information, :program:`ndnsec-sign-req` looks up the key in the PIB.
16If such a key exists, a self-signed certificate for the key, i.e. its signing
17request, is written to the standard output in base64 encoding.
18
19By default, *name* is interpreted as an identity name, and the signing request
20will be generated for that identity's default key.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070021
22Options
23-------
24
Davide Pesaventob310efb2019-04-11 22:10:24 -040025.. option:: -k, --key
Alexander Afanasyev151a8552014-04-11 00:54:43 -070026
Davide Pesaventob310efb2019-04-11 22:10:24 -040027 Interpret *name* as a key name, instead of an identity name.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070028
Davide Pesaventob310efb2019-04-11 22:10:24 -040029Example
30-------
Alexander Afanasyev151a8552014-04-11 00:54:43 -070031
Davide Pesaventob310efb2019-04-11 22:10:24 -040032Create a signing request for an identity's default key::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070033
34 $ ndnsec-sign-req /ndn/test/david
35 Bv0DAAc9CANuZG4IBHRlc3QIBWRhdmlkCANLRVkIEWtzay0xMzk2OTk4Mzg5MjU3
36 CAdJRC1DRVJUCAgAAAFFZ+ibohQDGAECFf0BeDCCAXQwIhgPMjAxNDA0MTYwMDIx
37 MDhaGA8yMDM0MDQxMTAwMjEwOFowKjAoBgNVBCkTIS9uZG4vdGVzdC9kYXZpZC9r
38 c2stMTM5Njk5ODM4OTI1NzCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEB
39 AKOhGgpUZXiUkaqgfcIvBKSw4wFcSMhBdXr45Tzh8hi8dv1plXKAV4YQLkjHhJqi
40 VTj8qGWkvaP0Kv/mkynaa2rPzUQ77wE1ydRIBUik62bXQa8SanJsV9ux99t9LBKq
41 MY4mtWgal48wFqwqRPNH4xq0yFACh28eaMCMpNvZd2Fh4gmDvQ5xU7sJTyRLt/Mc
42 mfYppDFGfzUP2nP8eQW5I9+L0DXMAAb4z8w1nXHs21xyPv0SSaJXgBH0ZdBwB++D
43 Eo5RLmcDdhFqN0f9Rlz06LVq+gLUC2M+N54jD5qUhPEdW5erY6pyYhq4Zv2B4lbK
44 Zgf2FWIB2iw0of4snf2SxDcCAREWOhsBARw1BzMIA25kbggEdGVzdAgFZGF2aWQI
45 A0tFWQgRa3NrLTEzOTY5OTgzODkyNTcIB0lELUNFUlQX/QEABe8tCY99uFTPyiNX
46 u/hUY96FGnfQx4usA2rCd+M4bkvsAwKQVlbBx1sDXsakvoHhLaCi+MTwHw17o+oG
47 mtPqklLjM8XS+gF+Lh+OyivJQixb8KR8tAtlGeLDoLU/kpgYv/xVhp8Q5ma0/T47
48 faI4Sn6bQP7YoWj+BdO3oZYthtq3MZPw2hl7wuTRMHNm5i3efnZyZdoPNMR2K43x
49 gH6ew1JbEQG7G6l5Q/jjnfT/oTtUeQzqWf2SSylAX+9xFZ9KG4+S6K7mYieBoqiA
50 0wHjvDS1cuIH2j6XveoUYapRjZXaEZqB/YoBwRqEYq2KVn/ol5knLM6FIISXXjxn
51 cIh62A==
52
Davide Pesaventob310efb2019-04-11 22:10:24 -040053Create a signing request for a particular key::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070054
55 $ ndnsec-sign-req -k /ndn/test/david/ksk-1396913058196
56 Bv0DAAc9CANuZG4IBHRlc3QIBWRhdmlkCANLRVkIEWtz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