@@ -70,6 +70,10 @@ OPTIONS
-v increase verbosity level
-h, --help display this help and exit
+Environment variables:
+
+EVMCTL_KEY_PASSWORD : Private key password to use; do not use --pass option
+
INTRODUCTION
------------
@@ -2530,6 +2530,9 @@ static void usage(void)
" --ignore-violations ignore ToMToU measurement violations\n"
" -v increase verbosity level\n"
" -h, --help display this help and exit\n"
+ "\n"
+ "Environment variables:\n\n"
+ "EVMCTL_KEY_PASSWORD : Private key password to use; do not use --pass option\n"
"\n");
}
@@ -2813,6 +2816,9 @@ int main(int argc, char *argv[])
}
}
+ if (!imaevm_params.keypass)
+ imaevm_params.keypass = getenv("EVMCTL_KEY_PASSWORD");
+
if (argv[optind] == NULL)
usage();
else