blob: a1a98a3b3ee1d80f5acb8d52abe04e9451685c88 [file] [log] [blame]
Alexander Afanasyev151a8552014-04-11 00:54:43 -07001ndnsec-cert-install
2===================
3
4``ndnsec-cert-install`` is a tool to install a certificate into **Public Information Base (PIB)**.
5
6Usage
7-----
8
9::
10
Davide Pesaventofa995ac2019-03-27 23:44:46 -040011 ndnsec-cert-install [-h] [-IKN] cert-source
Alexander Afanasyev151a8552014-04-11 00:54:43 -070012
13Description
14-----------
15
16``ndnsec-cert-install`` can insert a certificate into PIB. By default, the installed certificate
17will be set as the default certificate of its corresponding identity and the identity is set as
18the system default identity.
19
20``cert-source`` could be a filesystem path or an HTTP URL of a file containing to certificate to
21install or . If ``cert-file`` is ``-``, the certificate will be read from standard input.
22
23Options
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
37Examples
38--------
39
40Install a certificate and set it as the system default certificate:
41
42::
43
44 $ ndnsec-cert-install cert_file.cert
45
46Install 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
52Install a certificate but do not change any default settings:
53
54::
55
56 $ ndnsec-cert-install -N cert_file.cert