update wscript
Change-Id: I8fe5b1beb20d80b0e6da8926a1a18204320e9686
diff --git a/deployment/step-1-root-ca.sh b/deployment/step-1-root-ca.sh
index 61bbe5d..b7e89a4 100644
--- a/deployment/step-1-root-ca.sh
+++ b/deployment/step-1-root-ca.sh
@@ -1,5 +1,7 @@
#! /bin/bash
+# file name and password to a safebag
+
# compile and install ndncert
git clone https://github.com/Zhiyi-Zhang/ndncert.git
cd ndncert
@@ -7,18 +9,18 @@
./waf configure
sudo ./waf install
sudo cp ./build/systemd/ndncert-ca.service /etc/systemd/system/
-sudo chmod 644 /etc/systemd/system/ndncert-server.service
+sudo chmod 644 /etc/systemd/system/ndncert-ca.service
# prepare the CA root key
sudo mkdir /var/lib/ndncert-ca
sudo chown ndn /var/lib/ndncert-ca
-sudo HOME=/var/lib/ndncert -u ndn ndnsec-keygen /ndn
+sudo HOME=/var/lib/ndncert-ca -u ndn ndnsec-keygen /ndn
# prepare CA configuration file
echo -e "{\n\"ca-prefix\": \"/ndn\",\n\"ca-info\": \"NDN testbed root CA\",\n\"max-validity-period\": \"1296000\",\n\"max-suffix-length\": \"2\",\n\"supported-challenges\":\n[\n{ \"challenge\": \"pin\" }\n]\n}" > /usr/local/etc/ndncert/ca.conf
# run the CA
-sudo systemctl start ndncert-server
+sudo systemctl start ndncert-ca
sleep(2)
# check the status to make sure everything is correct