blob: c81964af4d547900bb11f233e69ea246dc57a89b [file] [log] [blame]
Alexander Afanasyev151a8552014-04-11 00:54:43 -07001ndnsec-import
2=============
3
Alexander Afanasyev151a8552014-04-11 00:54:43 -07004Usage
5-----
6
7::
8
Junxiao Shi476200b2017-10-05 12:16:27 +00009 $ ndnsec-import [-h] input
Alexander Afanasyev151a8552014-04-11 00:54:43 -070010
11Description
12-----------
13
Junxiao Shi476200b2017-10-05 12:16:27 +000014``ndnsec-import`` imports a certificate and private key from a file created by ``ndnsec-export``. It
15will ask for the passphrase used to encrypt the private key.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070016
17Options
18-------
19
Junxiao Shi476200b2017-10-05 12:16:27 +000020``-h``
21 Print a help message.
22
Alexander Afanasyev634a62b2018-06-15 16:55:26 -040023``-P passphrase``
24 Passphrase to use for the export. If not specified (or specified an empty passphrase), the
25 user is interactively asked to input the passphrase on the terminal. Note that specifying
26 passphrase via -P is insecure, as it can potentially end up in shell history, be visible in
27 ps output, etc.
28
Junxiao Shi476200b2017-10-05 12:16:27 +000029``input``
30 Read from an input file. Specify ``-`` to read from the standard input.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070031
32Examples
33--------
34
Junxiao Shi476200b2017-10-05 12:16:27 +000035Import a certificate and private key from a file:
Alexander Afanasyev151a8552014-04-11 00:54:43 -070036
37::
38
Junxiao Shi476200b2017-10-05 12:16:27 +000039 $ ndnsec-import alice.ndnkey