Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 1 | ndnsec-cert-install |
| 2 | =================== |
| 3 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame] | 4 | Synopsis |
| 5 | -------- |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 6 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame] | 7 | **ndnsec-cert-install** [**-h**] [**-I**\|\ **-K**\|\ **-N**] *file* |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 8 | |
| 9 | Description |
| 10 | ----------- |
| 11 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame] | 12 | :program:`ndnsec-cert-install` allows importing a certificate into the |
| 13 | **Public Information Base (PIB)**. By default, the installed certificate |
| 14 | will be set as the default certificate for the corresponding identity and |
| 15 | the identity will be set as the user's default identity. |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 16 | |
Junxiao Shi | 5bd6c64 | 2022-01-10 03:49:53 +0000 | [diff] [blame^] | 17 | *file* is a path to a file that contains the certificate to install. |
| 18 | If *file* is "-", the certificate will be read from the standard input. |
| 19 | The certificate should be in Base64 encoding. |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 20 | |
| 21 | Options |
| 22 | ------- |
| 23 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame] | 24 | .. option:: -I, --identity-default |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 25 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame] | 26 | Set the certificate as the default certificate for the corresponding identity, |
| 27 | but do not change the user's default identity. |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 28 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame] | 29 | .. option:: -K, --key-default |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 30 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame] | 31 | 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 Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 33 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame] | 34 | .. option:: -N, --no-default |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 35 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame] | 36 | Install the certificate but do not change any default settings. |
| 37 | |
| 38 | Example |
| 39 | ------- |
| 40 | |
| 41 | Install a certificate and set it as the default certificate:: |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 42 | |
| 43 | $ ndnsec-cert-install cert_file.cert |
| 44 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame] | 45 | Install a certificate but do not change any default settings:: |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 46 | |
| 47 | $ ndnsec-cert-install -N cert_file.cert |