tools: Allow specifying passphrase for ndnsec import/export in command line

Change-Id: Ic389249e017df27b0246cdd1fcd3a1431607246b
Refs: #4633
diff --git a/docs/manpages/ndnsec-export.rst b/docs/manpages/ndnsec-export.rst
index fb3c41f..dc94939 100644
--- a/docs/manpages/ndnsec-export.rst
+++ b/docs/manpages/ndnsec-export.rst
@@ -24,6 +24,12 @@
 ``-o output``
   Write to an output file instead of the standard output.
 
+``-P passphrase``
+  Passphrase to use for the export. If not specified (or specified an empty passphrase), the
+  user is interactively asked to input the passphrase on the terminal. Note that specifying
+  passphrase via -P is insecure, as it can potentially end up in shell history, be visible in
+  ps output, etc.
+
 ``identity``
   The identity name.
 
diff --git a/docs/manpages/ndnsec-import.rst b/docs/manpages/ndnsec-import.rst
index fbc8bc9..c81964a 100644
--- a/docs/manpages/ndnsec-import.rst
+++ b/docs/manpages/ndnsec-import.rst
@@ -20,6 +20,12 @@
 ``-h``
   Print a help message.
 
+``-P passphrase``
+  Passphrase to use for the export. If not specified (or specified an empty passphrase), the
+  user is interactively asked to input the passphrase on the terminal. Note that specifying
+  passphrase via -P is insecure, as it can potentially end up in shell history, be visible in
+  ps output, etc.
+
 ``input``
   Read from an input file. Specify ``-`` to read from the standard input.