am 9ce4e448: Merge "make_key: reduce raciness of password input"

* commit '9ce4e448dc69cf2d3ebdcdb56956b3f685f99182':
  make_key: reduce raciness of password input
This commit is contained in:
Kenny Root
2014-07-31 23:11:58 +00:00
committed by Android Git Automerger

View File

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