blob: 1f83d112567c929457de29f02799afd16c219dab [file] [log] [blame]
Alexander Afanasyev151a8552014-04-11 00:54:43 -07001ndnsec-cert-install
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-cert-install** [**-h**] [**-I**\|\ **-K**\|\ **-N**] *file*
Alexander Afanasyev151a8552014-04-11 00:54:43 -07008
9Description
10-----------
11
Davide Pesaventob310efb2019-04-11 22:10:24 -040012:program:`ndnsec-cert-install` allows importing a certificate into the
13**Public Information Base (PIB)**. By default, the installed certificate
14will be set as the default certificate for the corresponding identity and
15the identity will be set as the user's default identity.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070016
Junxiao Shi5bd6c642022-01-10 03:49:53 +000017*file* is a path to a file that contains the certificate to install.
18If *file* is "-", the certificate will be read from the standard input.
19The certificate should be in Base64 encoding.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070020
21Options
22-------
23
Davide Pesaventob310efb2019-04-11 22:10:24 -040024.. option:: -I, --identity-default
Alexander Afanasyev151a8552014-04-11 00:54:43 -070025
Davide Pesaventob310efb2019-04-11 22:10:24 -040026 Set the certificate as the default certificate for the corresponding identity,
27 but do not change the user's default identity.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070028
Davide Pesaventob310efb2019-04-11 22:10:24 -040029.. option:: -K, --key-default
Alexander Afanasyev151a8552014-04-11 00:54:43 -070030
Davide Pesaventob310efb2019-04-11 22:10:24 -040031 Set the certificate as the default certificate for the corresponding key, but
32 do not change the identity's default key or the user's default identity.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070033
Davide Pesaventob310efb2019-04-11 22:10:24 -040034.. option:: -N, --no-default
Alexander Afanasyev151a8552014-04-11 00:54:43 -070035
Davide Pesaventob310efb2019-04-11 22:10:24 -040036 Install the certificate but do not change any default settings.
37
38Example
39-------
40
41Install a certificate and set it as the default certificate::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070042
43 $ ndnsec-cert-install cert_file.cert
44
Davide Pesaventob310efb2019-04-11 22:10:24 -040045Install a certificate but do not change any default settings::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070046
47 $ ndnsec-cert-install -N cert_file.cert