improve cert scripts to read password better

This commit is contained in:
2019-01-13 10:35:23 +02:00
parent bdcb75f311
commit 1426533564
4 changed files with 4 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ rm -f client.csr
rm -f client.p12 rm -f client.p12
if [ -z "$1" ]; then if [ -z "$1" ]; then
read -s pass read -rs pass
else else
pass=$1 pass=$1
fi fi

View File

@@ -6,7 +6,7 @@ rm -f ca.crt
rm -f ca.key rm -f ca.key
if [ -z "$1" ]; then if [ -z "$1" ]; then
read -s pass read -rs pass
else else
pass=$1 pass=$1
fi fi

View File

@@ -2,7 +2,7 @@
if [ -z "$1" ]; then if [ -z "$1" ]; then
printf "Enter CA pass: " printf "Enter CA pass: "
read -s pass read -rs pass
printf "\n" printf "\n"
else else
pass=$1 pass=$1

View File

@@ -9,7 +9,7 @@ rm -f server.p12
if [ -z "$1" ]; then if [ -z "$1" ]; then
printf "Enter CA pass: " printf "Enter CA pass: "
read -s pass read -rs pass
printf "\n" printf "\n"
else else
pass=$1 pass=$1