Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame^] | 1 | ndnsec-sign-req |
| 2 | =============== |
| 3 | |
| 4 | ``ndnsec-sign-req`` is a tool to generate a signing request for a particular key. |
| 5 | |
| 6 | Usage |
| 7 | ----- |
| 8 | |
| 9 | :: |
| 10 | |
| 11 | $ ndnsec-sign-req [-h] [-k] name |
| 12 | |
| 13 | Description |
| 14 | ----------- |
| 15 | |
| 16 | The signing request of a key is actually a self-signed certificate. Given key's information, |
| 17 | ``ndnsec-sign-req`` looks up the key in PIB. If such a key exists, a self-signed certificate of the |
| 18 | key, or its signing request, will be outputed to **stdout** with base64 encoding. |
| 19 | |
| 20 | By default, ``name`` is interpreted as an identity name. ``ndnsec-sign-req`` will generate a |
| 21 | signing request for the identity's default key. |
| 22 | |
| 23 | Options |
| 24 | ------- |
| 25 | |
| 26 | ``-k`` |
| 27 | Interpret ``name`` as a key name. |
| 28 | |
| 29 | Examples |
| 30 | -------- |
| 31 | |
| 32 | Create a signing request for an identity's default key. |
| 33 | |
| 34 | :: |
| 35 | |
| 36 | $ ndnsec-sign-req /ndn/test/david |
| 37 | Bv0DAAc9CANuZG4IBHRlc3QIBWRhdmlkCANLRVkIEWtzay0xMzk2OTk4Mzg5MjU3 |
| 38 | CAdJRC1DRVJUCAgAAAFFZ+ibohQDGAECFf0BeDCCAXQwIhgPMjAxNDA0MTYwMDIx |
| 39 | MDhaGA8yMDM0MDQxMTAwMjEwOFowKjAoBgNVBCkTIS9uZG4vdGVzdC9kYXZpZC9r |
| 40 | c2stMTM5Njk5ODM4OTI1NzCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEB |
| 41 | AKOhGgpUZXiUkaqgfcIvBKSw4wFcSMhBdXr45Tzh8hi8dv1plXKAV4YQLkjHhJqi |
| 42 | VTj8qGWkvaP0Kv/mkynaa2rPzUQ77wE1ydRIBUik62bXQa8SanJsV9ux99t9LBKq |
| 43 | MY4mtWgal48wFqwqRPNH4xq0yFACh28eaMCMpNvZd2Fh4gmDvQ5xU7sJTyRLt/Mc |
| 44 | mfYppDFGfzUP2nP8eQW5I9+L0DXMAAb4z8w1nXHs21xyPv0SSaJXgBH0ZdBwB++D |
| 45 | Eo5RLmcDdhFqN0f9Rlz06LVq+gLUC2M+N54jD5qUhPEdW5erY6pyYhq4Zv2B4lbK |
| 46 | Zgf2FWIB2iw0of4snf2SxDcCAREWOhsBARw1BzMIA25kbggEdGVzdAgFZGF2aWQI |
| 47 | A0tFWQgRa3NrLTEzOTY5OTgzODkyNTcIB0lELUNFUlQX/QEABe8tCY99uFTPyiNX |
| 48 | u/hUY96FGnfQx4usA2rCd+M4bkvsAwKQVlbBx1sDXsakvoHhLaCi+MTwHw17o+oG |
| 49 | mtPqklLjM8XS+gF+Lh+OyivJQixb8KR8tAtlGeLDoLU/kpgYv/xVhp8Q5ma0/T47 |
| 50 | faI4Sn6bQP7YoWj+BdO3oZYthtq3MZPw2hl7wuTRMHNm5i3efnZyZdoPNMR2K43x |
| 51 | gH6ew1JbEQG7G6l5Q/jjnfT/oTtUeQzqWf2SSylAX+9xFZ9KG4+S6K7mYieBoqiA |
| 52 | 0wHjvDS1cuIH2j6XveoUYapRjZXaEZqB/YoBwRqEYq2KVn/ol5knLM6FIISXXjxn |
| 53 | cIh62A== |
| 54 | |
| 55 | |
| 56 | Create a signing request for a particular key. |
| 57 | |
| 58 | :: |
| 59 | |
| 60 | $ ndnsec-sign-req -k /ndn/test/david/ksk-1396913058196 |
| 61 | Bv0DAAc9CANuZG4IBHRlc3QIBWRhdmlkCANLRVkIEWtzay0xMzk2OTEzMDU4MTk2 |
| 62 | CAdJRC1DRVJUCAgAAAFFZ+mbhRQDGAECFf0BeDCCAXQwIhgPMjAxNDA0MTYwMDIy |
| 63 | MTRaGA8yMDM0MDQxMTAwMjIxNFowKjAoBgNVBCkTIS9uZG4vdGVzdC9kYXZpZC9r |
| 64 | c2stMTM5NjkxMzA1ODE5NjCCASAwDQYJKoZIhvcNAQ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