blob: 7c25a6aebd28774a41fc09daef28174a1a413c4e [file] [log] [blame]
Alexander Afanasyev151a8552014-04-11 00:54:43 -07001ndnsec-import
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-import** [**-h**] [**-P** *passphrase*] *file*
Alexander Afanasyev151a8552014-04-11 00:54:43 -07008
9Description
10-----------
11
Davide Pesaventob310efb2019-04-11 22:10:24 -040012:program:`ndnsec-import` imports a certificate and its private key from a file
13created by :program:`ndnsec-export`. It will ask for the passphrase used to
14encrypt the private key.
15
16If *file* is "-", read from the standard input.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070017
18Options
19-------
20
Davide Pesaventob310efb2019-04-11 22:10:24 -040021.. option:: -P <passphrase>, --password <passphrase>
Junxiao Shi476200b2017-10-05 12:16:27 +000022
Davide Pesaventob310efb2019-04-11 22:10:24 -040023 Passphrase to use for the export. If empty or not specified, the user is
24 interactively asked to type the passphrase on the terminal. Note that
25 specifying the passphrase via this option is insecure, as it can potentially
26 end up in the shell's history, be visible in :command:`ps` output, and so on.
Alexander Afanasyev634a62b2018-06-15 16:55:26 -040027
Davide Pesaventob310efb2019-04-11 22:10:24 -040028Example
29-------
Alexander Afanasyev151a8552014-04-11 00:54:43 -070030
Davide Pesaventob310efb2019-04-11 22:10:24 -040031Import a certificate and private key from a file::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070032
Junxiao Shi476200b2017-10-05 12:16:27 +000033 $ ndnsec-import alice.ndnkey