Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 1 | ndnsec-cert-install |
| 2 | =================== |
| 3 | |
| 4 | ``ndnsec-cert-install`` is a tool to install a certificate into **Public Information Base (PIB)**. |
| 5 | |
| 6 | Usage |
| 7 | ----- |
| 8 | |
| 9 | :: |
| 10 | |
| 11 | $ ndnsec-cert-install [-h] [-IKN] cert-source |
| 12 | |
| 13 | Description |
| 14 | ----------- |
| 15 | |
| 16 | ``ndnsec-cert-install`` can insert a certificate into PIB. By default, the installed certificate |
| 17 | will be set as the default certificate of its corresponding identity and the identity is set as |
| 18 | the system default identity. |
| 19 | |
| 20 | ``cert-source`` could be a filesystem path or an HTTP URL of a file containing to certificate to |
| 21 | install or . If ``cert-file`` is ``-``, the certificate will be read from standard input. |
| 22 | |
| 23 | Options |
| 24 | ------- |
| 25 | |
| 26 | ``-I`` |
| 27 | Set the certificate as the default certificate of its corresponding identity, but do not change |
| 28 | the system default identity. |
| 29 | |
| 30 | ``-K`` |
| 31 | Set the certificate as the default certificate of its corresponding key, but do not change the |
| 32 | corresponding identity's default key and the system default identity. |
| 33 | |
| 34 | ``-N`` |
| 35 | Install the certificate but do not change any default settings. |
| 36 | |
| 37 | Examples |
| 38 | -------- |
| 39 | |
| 40 | Install a certificate and set it as the system default certificate: |
| 41 | |
| 42 | :: |
| 43 | |
| 44 | $ ndnsec-cert-install cert_file.cert |
| 45 | |
| 46 | Install a certificate with HTTP URL and set it as the system default certificate: |
| 47 | |
| 48 | :: |
| 49 | |
| 50 | $ ndnsec-install-cert "http://ndncert.domain.com/cert/get/my-certificate.ndncert" |
| 51 | |
| 52 | Install a certificate but do not change any default settings: |
| 53 | |
| 54 | :: |
| 55 | |
| 56 | $ ndnsec-cert-install -N cert_file.cert |