ci+docs+tools: stop using deprecated ndnsec commands
Change-Id: If77f479b45581a9a70619c329e713524678e35fb
This commit is contained in:
1 parent
d412393379
commit
d69070ef50
5 files changed
+19
-18
No files matched your search
@@ -8,7 +8,7 @@ if has OSX $NODE_LABELS; then
|
||||
security unlock-keychain -p named-data
|
||||
fi
|
||||
|
||||
ndnsec-keygen "/tmp/jenkins/$NODE_NAME" | ndnsec-install-cert -
|
||||
ndnsec key-gen "/tmp/jenkins/$NODE_NAME" | ndnsec cert-install -
|
||||
|
||||
# https://github.com/google/sanitizers/wiki/AddressSanitizerFlags
|
||||
ASAN_OPTIONS="color=always"
|
||||
|
||||
+6
-5
@@ -107,11 +107,12 @@ If you do not already have an NDN certificate, you can generate one using the fo
|
||||
|
||||
::
|
||||
|
||||
ndnsec-keygen /`whoami` | ndnsec-install-cert -
|
||||
ndnsec key-gen /$(whoami) | ndnsec cert-install -
|
||||
|
||||
Note that the argument to ndnsec-key will be the identity name of the new key (in this case,
|
||||
``/your-username``). Identity names are hierarchical NDN names and may have multiple components
|
||||
(e.g. ``/ndn/ucla/edu/alice``). You may create additional keys and identities as you see fit.
|
||||
Note that the argument to ``ndnsec key-gen`` will be the identity name of the new key (in this
|
||||
case, ``/your-username``). Identity names are hierarchical NDN names and may have multiple
|
||||
components (e.g. ``/ndn/ucla/edu/alice``). You may create additional keys and identities as
|
||||
needed.
|
||||
|
||||
**Exporting the NDN certificate to a file**:
|
||||
|
||||
@@ -121,5 +122,5 @@ If you have, please substitute the appropriate path in place of ``/usr/local/etc
|
||||
::
|
||||
|
||||
sudo mkdir -p /usr/local/etc/ndn/keys
|
||||
ndnsec-cert-dump -i /`whoami` > default.ndncert
|
||||
ndnsec cert-dump -i /$(whoami) > default.ndncert
|
||||
sudo mv default.ndncert /usr/local/etc/ndn/keys/default.ndncert
|
||||
+2
-2
@@ -66,7 +66,7 @@ and file-based private key storage needs to be used:
|
||||
mkdir -p /usr/local/var/lib/ndn/nfd/.ndn; \
|
||||
export HOME=/usr/local/var/lib/ndn/nfd; \
|
||||
echo tpm=tpm-file > /usr/local/var/lib/ndn/nfd/.ndn/client.conf; \
|
||||
ndnsec-keygen /localhost/daemons/nfd | ndnsec-install-cert -; \
|
||||
ndnsec key-gen /localhost/daemons/nfd | ndnsec cert-install -; \
|
||||
'
|
||||
|
||||
### Configuring NFD's security
|
||||
@@ -111,7 +111,7 @@ be exported into `localhost_daemons_nfd.ndncert` file:
|
||||
sudo -s -- '\
|
||||
mkdir -p /usr/local/etc/ndn/certs || true; \
|
||||
export HOME=/usr/local/var/lib/ndn/nfd; \
|
||||
ndnsec-dump-certificate -i /localhost/daemons/nfd > \
|
||||
ndnsec cert-dump -i /localhost/daemons/nfd > \
|
||||
/usr/local/etc/ndn/certs/localhost_daemons_nfd.ndncert; \
|
||||
'
|
||||
|
||||
|
||||
+8
-8
@@ -281,17 +281,17 @@ authorizations
|
||||
;
|
||||
; 1. Generate and install a self-signed identity certificate:
|
||||
;
|
||||
; ndnsec-keygen /`whoami` | ndnsec-install-cert -
|
||||
; ndnsec key-gen /$(whoami) | ndnsec cert-install -
|
||||
;
|
||||
; Note that the argument to ndnsec-key will be the identity name of the
|
||||
; new key (in this case, /your-username). Identities are hierarchical NDN
|
||||
; names and may have multiple components (e.g. `/ndn/ucla/edu/alice`).
|
||||
; You may create additional keys and identities as you see fit.
|
||||
; Note that the argument to 'ndnsec key-gen' will be the identity name of
|
||||
; the new key (in this case, /your-username). Identities are hierarchical
|
||||
; NDN names and may have multiple components (e.g., /ndn/ucla/edu/alice).
|
||||
; You may create additional keys and identities as needed.
|
||||
;
|
||||
; 2. Dump the NDN certificate to a file:
|
||||
; 2. Export the certificate to a file:
|
||||
;
|
||||
; sudo mkdir -p @SYSCONFDIR@/ndn/keys/
|
||||
; ndnsec-cert-dump -i /`whoami` > default.ndncert
|
||||
; ndnsec cert-dump -i /$(whoami) > default.ndncert
|
||||
; sudo mkdir -p @SYSCONFDIR@/ndn/keys
|
||||
; sudo mv default.ndncert @SYSCONFDIR@/ndn/keys/default.ndncert
|
||||
;
|
||||
; The "certfile" field below specifies the default key directory for
|
||||
|
||||
+2
-2
@@ -37,9 +37,9 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! ndnsec-get-default &>/dev/null
|
||||
if ! ndnsec get-default &>/dev/null
|
||||
then
|
||||
ndnsec-keygen /localhost/operator | ndnsec-install-cert -
|
||||
ndnsec key-gen /localhost/operator | ndnsec cert-install -
|
||||
fi
|
||||
|
||||
if ! sudo true
|
||||
|
||||
Reference in new issue
Block a user