Expose EASYRSA_PASSIN and EASYRSA_PASSOUT env variables

By exposing these variables it's possible to configure the password from
various sources by specifing env vars. This is a followup to PR #242

Fixes #365
This commit is contained in:
Peter Schiffer 2020-03-23 19:11:44 +01:00
parent 8f07331ab8
commit f4b4308f16
No known key found for this signature in database
GPG Key ID: 6CCC5046E2B0B44B
2 changed files with 4 additions and 4 deletions

View File

@ -113,3 +113,7 @@ possible terse description is shown below:
signing
* `EASYRSA_BATCH` (CLI: `--batch`) - enable batch (no-prompt) mode; set
env-var to non-zero string to enable (CLI takes no options)
* `EASYRSA_PASSIN` (CLI: `--passin`) - allows to specify a source for password;
using any openssl password options like pass:1234 or env:var
* `EASYRSA_PASSOUT` (CLI: `--passout`) - allows to specify a source for password;
using any openssl password options like pass:1234 or env:var

View File

@ -2324,10 +2324,6 @@ NL='
# Be secure with a restrictive umask
[ -z "$EASYRSA_NO_UMASK" ] && umask 077
# Ignore some env vars
EASYRSA_PASSIN=
EASYRSA_PASSOUT=
# Parse options
while :; do
# Separate option from value: