blob: fe7023353bb32391630a1ccb434dff73b251648e [file] [log] [blame]
Alexander Afanasyev151a8552014-04-11 00:54:43 -07001ndnsec-key-gen
2==============
3
4``ndnsec-key-gen`` is tool to generate a pair of RSA key.
5
6Usage
7-----
8
9::
10
11 $ ndnsec-key-gen [-h] [-n] identity
12
13Description
14-----------
15
16``ndnsec-key-gen`` creates a RSA key pair for the specified ``identity`` and sets the key as the
17identity's default key. ``ndnsec-key-gen`` will also create a signing request for the generated key.
18The signing request will be written to standard output in base64 encoding.
19
20By default, it will also set the identity as the system default identity.
21
22Options
23-------
24
25``-n``
26 Do not set the identity as the system default identity.
27
28Examples
29--------
30
31::
32
33 $ ndnsec-key-gen /ndn/test/david
34 Bv0DAAc9CANuZG4IBHRlc3QIBWRhdmlkCANLRVkIEWtzay0xMzk2OTEzMDU4MTk2
35 CAdJRC1DRVJUCAgAAAFFPoG0ohQDGAECFf0BeDCCAXQwIhgPMjAxNDA0MDcyMzI0
36 MThaGA8yMDM0MDQwMjIzMjQxOFowKjAoBgNVBCkTIS9uZG4vdGVzdC9kYXZpZC9r
37 c2stMTM5NjkxMzA1ODE5NjCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEB
38 ALS6udLacpydecxMRIfZeo74fxzpsITqaa/4UxD2FJ9lU4dtfiSSIOaRwAB/w0K/
39 AauQRq3Q1AiEocUsW2h8LmtcuF4Cj9TGAUD/1s3CISMwf9zwQ3ZhNIzN0IOsrpPA
40 TsHrbdwtOxrcFvXX4GnMLWgtvcSB52Cn68h/4AUiA1CG9/DOyCyA4EHiIkHBxh6B
41 TvAmw7SmNjr1ZBTYMaMAEV5/oLZCHzHRO+2fKdEttaWH3bz7iKVVS8u5ZxXcBs8g
42 ot55m7Xf6/TUk3qQXM1kM8wW04U+8n3jch1i7tD2T3c/OFKTT7AWndwcfbU99Z6C
43 FZ7fMsgRHxFNY8hCFZJvFFUCAREWOhsBARw1BzMIA25kbggEdGVzdAgFZGF2aWQI
44 A0tFWQgRa3N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