blob: 3dcc9489a1b8ed6f0c1cac2d9cb5538a5f58ec5e [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 Pesavento102f0572024-06-22 15:00:06 -04007**ndnsec cert-install** [**-h**] [**-I**\|\ **-K**\|\ **-N**] *file*
Alexander Afanasyev151a8552014-04-11 00:54:43 -07008
9Description
10-----------
11
Davide Pesavento102f0572024-06-22 15:00:06 -040012This command allows importing a certificate into the **Public Information Base (PIB)**.
13By default, the installed certificate will be set as the default certificate for the
14corresponding identity and the identity will be set as the user's default identity.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070015
Junxiao Shi5bd6c642022-01-10 03:49:53 +000016*file* is a path to a file that contains the certificate to install.
17If *file* is "-", the certificate will be read from the standard input.
18The certificate should be in Base64 encoding.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070019
20Options
21-------
22
Davide Pesaventob310efb2019-04-11 22:10:24 -040023.. option:: -I, --identity-default
Alexander Afanasyev151a8552014-04-11 00:54:43 -070024
Davide Pesaventob310efb2019-04-11 22:10:24 -040025 Set the certificate as the default certificate for the corresponding identity,
26 but do not change the user's default identity.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070027
Davide Pesaventob310efb2019-04-11 22:10:24 -040028.. option:: -K, --key-default
Alexander Afanasyev151a8552014-04-11 00:54:43 -070029
Davide Pesaventob310efb2019-04-11 22:10:24 -040030 Set the certificate as the default certificate for the corresponding key, but
31 do not change the identity's default key or the user's default identity.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070032
Davide Pesaventob310efb2019-04-11 22:10:24 -040033.. option:: -N, --no-default
Alexander Afanasyev151a8552014-04-11 00:54:43 -070034
Davide Pesaventob310efb2019-04-11 22:10:24 -040035 Install the certificate but do not change any default settings.
36
Davide Pesavento102f0572024-06-22 15:00:06 -040037Examples
38--------
Davide Pesaventob310efb2019-04-11 22:10:24 -040039
40Install a certificate and set it as the default certificate::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070041
Davide Pesavento102f0572024-06-22 15:00:06 -040042 $ ndnsec cert-install cert_file.cert
Alexander Afanasyev151a8552014-04-11 00:54:43 -070043
Davide Pesaventob310efb2019-04-11 22:10:24 -040044Install a certificate but do not change any default settings::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070045
Davide Pesavento102f0572024-06-22 15:00:06 -040046 $ ndnsec cert-install -N cert_file.cert
47
48See Also
49--------
50
51:manpage:`ndnsec-cert-dump(1)`,
52:manpage:`ndnsec-cert-gen(1)`,
53:manpage:`ndnsec-import(1)`