fix --passin option for RSA keys

Commit 1e98ba8 introduced an issue with RSA keys (only ED keys were
tested).

Closes #403 and #395

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
This commit is contained in:
Eric F Crist 2020-09-09 14:36:31 -05:00
commit eaca0832fa
No known key found for this signature in database
GPG Key ID: 72964219390D0D0E

View File

@ -670,7 +670,7 @@ current CA keypair. If you intended to start a new CA, run init-pki first."
if [ "ed" = "$EASYRSA_ALGO" ]; then
crypto_opts="$crypto_opts -pass file:$out_key_pass_tmp"
else
crypto_opts="$crypto_opts -passin file:$out_key_pass_tmp"
crypto_opts="$crypto_opts -passout file:$out_key_pass_tmp"
fi
fi
fi