build-ca: Remove obsolete unit-test CA password variant
If this code s left in then the unit test always falls through to testing a CA without a password. Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
parent
5d7ad1306d
commit
c1bf6a43d7
@ -1579,15 +1579,6 @@ to the latest Easy-RSA release."
|
||||
then
|
||||
: # No passphrase required
|
||||
|
||||
# Strictly for use only by easyrsa-unit-tests.sh
|
||||
elif [ "$ERSA_UTEST_VERSION" ] && [ "$EASYRSA_USE_PASS" ]
|
||||
then
|
||||
# Set a test password and use file-descriptor method
|
||||
CA_key_pass='EasyRSA'
|
||||
# To use stdin for -passin and -passout
|
||||
# MUST use -batch
|
||||
ssl_batch=1
|
||||
|
||||
elif [ "$EASYRSA_PASSOUT" ] && [ "$EASYRSA_PASSIN" ]
|
||||
then
|
||||
: # passphrase defined
|
||||
@ -1722,11 +1713,6 @@ to the latest Easy-RSA release."
|
||||
|
||||
verbose "\
|
||||
build_ca: CA key password created via stdin"
|
||||
if [ "$ERSA_UTEST_VERSION" ] && \
|
||||
[ "$EASYRSA_USE_PASS" ]
|
||||
then
|
||||
print "CA key via stdin"
|
||||
fi
|
||||
|
||||
else
|
||||
case "$EASYRSA_ALGO" in
|
||||
@ -1786,11 +1772,6 @@ build_ca: CA key password created via temp-files"
|
||||
|
||||
verbose "\
|
||||
build_ca: CA certificate password created via stdin"
|
||||
if [ "$ERSA_UTEST_VERSION" ] && \
|
||||
[ "$EASYRSA_USE_PASS" ]
|
||||
then
|
||||
print "CA Cert via stdin"
|
||||
fi
|
||||
|
||||
else
|
||||
easyrsa_openssl req -utf8 -new \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user