Don't ask for ca-password during update-db if EASYRSA_PASSIN is set

Now it is possible to run the command update-db without being asked for
the ca-password, if the option --passin is provided at the command line.
This commit is contained in:
Arndt Kaiser 2020-05-10 20:04:48 +02:00
parent c505a14be5
commit 09637e3243

View File

@ -1493,7 +1493,7 @@ Failed to change the private key passphrase. See above for error messages."
update_db() {
verify_ca_init
easyrsa_openssl ca -utf8 -updatedb || die "\
easyrsa_openssl ca -utf8 -updatedb ${EASYRSA_PASSIN:+-passin "$EASYRSA_PASSIN"} || die "\
Failed to perform update-db: see above for related openssl errors."
return 0
} # => update_db()