Feature: --passin for update-db operations with CA

Merge branch 'madmajestro-use-passin-update-db'

Adds support for leveraging the --passin option for the CA private key
password when running the update-db command.

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

View File

@ -1498,7 +1498,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()