When ssl_passphrase_command is not valid, the error message is
typically "bad decrypt" but it seems sometimes "wrong tag".
This is a backport of master
e30bb2ead.
Backpatch-through: v4.6 - v4.2.
$PSQL -h localhost -c "select 1" test
-grep "could not load private key file" log/pgpool.log|grep "bad decrypt"
+# The error message is typically "bad decrypt".
+# But it seems sometimes "wrong tag".
+grep "could not load private key file" log/pgpool.log|egrep "bad decrypt|wrong tag"
if [ $? != 0 ];then
echo "Checking cert with invalid password failed."
./shutdownall