Avoid deprecated ndnsec commands

Change-Id: I1724bfe8aa09ee2141d6cedb30ea23caaa080c5b
diff --git a/repo-ng/debian/repo-ng.postinst b/repo-ng/debian/repo-ng.postinst
index b49473c..92a7ec9 100644
--- a/repo-ng/debian/repo-ng.postinst
+++ b/repo-ng/debian/repo-ng.postinst
@@ -10,8 +10,8 @@
     # Create HOME and generate self-signed NDN certificate
     sudo mkdir -p /var/lib/ndn/$APP/.ndn
     sudo chown -R ndn:ndn /var/lib/ndn/$APP
-    sudo -u ndn -g ndn HOME=/var/lib/ndn/$APP ndnsec-keygen /localhost/daemons/$APP | \
-      sudo -u ndn -g ndn HOME=/var/lib/ndn/$APP ndnsec-install-cert -
+    sudo -u ndn -g ndn HOME=/var/lib/ndn/$APP ndnsec key-gen /localhost/daemons/$APP | \
+      sudo -u ndn -g ndn HOME=/var/lib/ndn/$APP ndnsec cert-install -
 fi
 
 #DEBHELPER#