am 9ce4e448: Merge "make_key: reduce raciness of password input"
* commit '9ce4e448dc69cf2d3ebdcdb56956b3f685f99182': make_key: reduce raciness of password input
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user