Merge branch 'make-vars' of ssh://github.com/TinCanTech/easy-rsa into TinCanTech-make-vars
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
commit
582aadeea7
@ -1,6 +1,7 @@
|
|||||||
Easy-RSA 3 ChangeLog
|
Easy-RSA 3 ChangeLog
|
||||||
|
|
||||||
3.2.0 (TBD)
|
3.2.0 (TBD)
|
||||||
|
* New command: make-vars - Print vars.example (here-doc) to stdout (#1024)
|
||||||
* show-expire: Calculate cert. expire seconds from DB date (#1023)
|
* show-expire: Calculate cert. expire seconds from DB date (#1023)
|
||||||
* Forbid "default vars in the default PKI" for all commands (#1021)
|
* Forbid "default vars in the default PKI" for all commands (#1021)
|
||||||
There can be only one default vars file, that is now './vars' ONLY.
|
There can be only one default vars file, that is now './vars' ONLY.
|
||||||
|
|||||||
@ -469,6 +469,9 @@ cmd_help() {
|
|||||||
# Test features
|
# Test features
|
||||||
text_only=1
|
text_only=1
|
||||||
text="
|
text="
|
||||||
|
Print vars.example here-doc to stdout:
|
||||||
|
make-vars
|
||||||
|
|
||||||
Make safessl-easyrsa.cnf file:
|
Make safessl-easyrsa.cnf file:
|
||||||
mss|make-safe-ssl
|
mss|make-safe-ssl
|
||||||
|
|
||||||
@ -5827,6 +5830,7 @@ Remove 'unset' ('force_set_var' may also work)."
|
|||||||
# shellcheck disable=SC2034 # appears unused
|
# shellcheck disable=SC2034 # appears unused
|
||||||
EASYRSA_CALLER=1
|
EASYRSA_CALLER=1
|
||||||
easyrsa_path="$PATH"
|
easyrsa_path="$PATH"
|
||||||
|
# shellcheck disable=SC2123 # PATH is the shell ..
|
||||||
PATH=./
|
PATH=./
|
||||||
|
|
||||||
# Test sourcing 'vars' in a subshell
|
# Test sourcing 'vars' in a subshell
|
||||||
@ -7304,6 +7308,14 @@ case "$cmd" in
|
|||||||
esac
|
esac
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Run these commands with NO setup
|
||||||
|
case "$cmd" in
|
||||||
|
make-vars)
|
||||||
|
create_vars_example
|
||||||
|
cleanup ok
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Intelligent env-var detection and auto-loading:
|
# Intelligent env-var detection and auto-loading:
|
||||||
vars_setup
|
vars_setup
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user