Merge "make_key: reduce raciness of password input"

This commit is contained in:
Kenny Root
2014-07-31 23:08:14 +00:00
committed by Gerrit Code Review

View File

@@ -68,8 +68,10 @@ if [ "${password}" == "" ]; then
openssl pkcs8 -in ${one} -topk8 -outform DER -out $1.pk8 -nocrypt openssl pkcs8 -in ${one} -topk8 -outform DER -out $1.pk8 -nocrypt
else else
echo "creating ${1}.pk8 with password [${password}]" echo "creating ${1}.pk8 with password [${password}]"
echo $password | openssl pkcs8 -in ${one} -topk8 -outform DER -out $1.pk8 \ export password
-passout stdin openssl pkcs8 -in ${one} -topk8 -outform DER -out $1.pk8 \
-passout env:password
unset password
fi fi
wait wait