blob: c2a4b0336ae7fe7f2388f61e997c6889d0d95135 [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 Pesavento102f0572024-06-22 15:00:06 -04007**ndnsec sign-req** [**-h**] [**-k**] *name*
Alexander Afanasyev151a8552014-04-11 00:54:43 -07008
9Description
10-----------
11
Davide Pesavento102f0572024-06-22 15:00:06 -040012Generate a signing request for a key and print it to the standard output in Base64
13encoding. Note that a signing request is essentially just a self-signed certificate.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070014
Davide Pesavento102f0572024-06-22 15:00:06 -040015By default, *name* is interpreted as an identity name, and the signing request is
16generated for that identity's default key.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070017
18Options
19-------
20
Davide Pesaventob310efb2019-04-11 22:10:24 -040021.. option:: -k, --key
Alexander Afanasyev151a8552014-04-11 00:54:43 -070022
Davide Pesaventob310efb2019-04-11 22:10:24 -040023 Interpret *name* as a key name, instead of an identity name.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070024
Davide Pesavento102f0572024-06-22 15:00:06 -040025Examples
26--------
Alexander Afanasyev151a8552014-04-11 00:54:43 -070027
Davide Pesaventob310efb2019-04-11 22:10:24 -040028Create a signing request for an identity's default key::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070029
Davide Pesavento102f0572024-06-22 15:00:06 -040030 $ ndnsec sign-req /ndn/test/david
31 Bv0BUAc5CANuZG4IBHRlc3QIBWRhdmlkCANLRVkICLe4LjaLILlwCAxjZXJ0LXJl
32 cXVlc3Q2CAAAAZBBKKWTFAkYAQIZBAA27oAVWzBZMBMGByqGSM49AgEGCCqGSM49
33 AwEHA0IABJxGmknWpDMKlPKO+xffd9b39bGilN2gTB8xkQ04L3rRgHuD8syFbHXT
34 Czht6djEg7YQuKtbQ1npa7lVS7N/KN8WYhsBAxwzBzEIA25kbggEdGVzdAgFZGF2
35 aWQIA0tFWQgIt7guNosguXAIBHNlbGY2CAAAAZBBJUwR/QD9Jv0A/g8yMDI0MDYy
36 MlQxODE1MDH9AP8PMjAyNDA3MDJUMTgxNTAxF0cwRQIgGewzD5ZXsu49hnB/pJ+V
37 RR8JJZf9v29T/cqoEpYbf7sCIQCMySY9yqs2NybIQMVJQsJceEbOFPSjWIc9bwye
38 7Ecuyw==
Alexander Afanasyev151a8552014-04-11 00:54:43 -070039
Davide Pesaventob310efb2019-04-11 22:10:24 -040040Create a signing request for a particular key::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070041
Davide Pesavento102f0572024-06-22 15:00:06 -040042 $ ndnsec sign-req -k /ndn/test/david/KEY/%BDA%0F%EE%F55%D8%F4
43 Bv0BUQc5CANuZG4IBHRlc3QIBWRhdmlkCANLRVkICL1BD+71Ndj0CAxjZXJ0LXJl
44 cXVlc3Q2CAAAAZBBLUzJFAkYAQIZBAA27oAVWzBZMBMGByqGSM49AgEGCCqGSM49
45 AwEHA0IABO99nylhohJt0WnKNiVj6G1XNYxEgM7ESNXcpwgWB7gyeNywzG5JMfDs
46 GBlPZ4C4kshOzzw8uu4qmwexNUROWBgWYhsBAxwzBzEIA25kbggEdGVzdAgFZGF2
47 aWQIA0tFWQgIvUEP7vU12PQIBHNlbGY2CAAAAZBBLCFq/QD9Jv0A/g8yMDI0MDYy
48 MlQxODIwMDb9AP8PMjAyNDA3MDJUMTgyMDA2F0gwRgIhANjJjB3OkFY1idr83rgc
49 jqusnrWe9kFs4Fai/GmteqDlAiEA3z0LYmLG0+k0Q1jLNzrZwKuVk+MUxtChXTUg
50 NKXukzg=
51
52See Also
53--------
54
55:manpage:`ndnsec-cert-gen(1)`,
56:manpage:`ndnsec-key-gen(1)`