File tree Expand file tree Collapse file tree 4 files changed +17
-3
lines changed
Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 2626 EASYRSA_NIX : 1
2727 TERM : xterm-256color
2828 EASYRSA_SILENT_SSL : 1
29+ EASYRSA_SET_ERREXIT : 1
2930
3031 # Steps represent a sequence of tasks that will be executed as part of the job
3132 steps :
5354 EASYRSA_WIN_QUICK : 1
5455 TERM : xterm-256color
5556 EASYRSA_SILENT_SSL : 1
57+ EASYRSA_SET_ERREXIT : 1
5658
5759 # Steps represent a sequence of tasks that will be executed as part of the job
5860 steps :
8082 EASYRSA_MAC : 1
8183 TERM : xterm-256color
8284 EASYRSA_SILENT_SSL : 1
85+ EASYRSA_SET_ERREXIT : 1
8386
8487 # Steps represent a sequence of tasks that will be executed as part of the job
8588 steps :
Original file line number Diff line number Diff line change 11Easy-RSA 3 ChangeLog
22
3+ 3.2.6 (TBD)
4+
5+ * CI: Enable shell switch errexit, set by env-var $EASYRSA_SET_ERREXIT (772d6f6) (#1417)
6+
373.2.5 (2025-12-13)
48
59 * ssl_cert_digest(): Support Edwards curve with LibreSSL (1eaa31e) (#1415)
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ short description is shown below:
170170 * ` EASYRSA_PASSOUT ` (CLI: ` --passout ` ) - allows to specify a source for
171171 password using any openssl password options like pass:1234 or env: var
172172 * ` EASYRSA_NO_PASS ` (CLI: ` --nopass ` ) - disable use of passwords
173- * ` EASYRSA_UMASK ` (CLI: ` --umask ` ) - safe umask to use for file creation.
173+ * ` EASYRSA_UMASK ` (CLI: ` --umask ` ) - safe umask to use for file creation
174174 Defaults to ` 077 `
175175 * ` EASYRSA_NO_UMASK ` (CLI: ` --no-umask ` ) - disable safe umask. Files will be
176176 created using the system's default
@@ -183,5 +183,6 @@ short description is shown below:
183183 * ` EASYRSA_FORCE_SAFE_SSL ` (CLI: ` --force-safe-ssl ` ) - expand environment
184184 variables in SSL config
185185 * ` EASYRSA_FORCE_VARS ` (CLI: ` --force-vars ` ) - ignore known errors in 'vars' file
186+ * ` EASYRSA_SET_ERREXIT ` - Enable ` errexit ` , IE. ` set -e ` , within ` easyrsa ` script
186187
187188** NOTE:** the global options must be provided before the commands.
Original file line number Diff line number Diff line change @@ -1080,6 +1080,7 @@ and then try running the easyrsa command again."
10801080 fi
10811081
10821082 # if 'cleanup' is called without 'ok' then an error occurred
1083+ print "*** Easy-RSA has encountered a FATAL error, please report this."
10831084 verbose "Exit: Final Fail = true"
10841085 exit 1 # Exit: Final Fail, unknown error
10851086} # => cleanup()
@@ -1500,8 +1501,8 @@ Your newly created PKI dir is:
15001501
15011502 # Select and show Auto-configured vars file
15021503 unset -v EASYRSA_NO_VARS EASYRSA_VARS_FILE
1503- select_vars
1504- if [ "$EASYRSA_VARS_FILE" ] ; then
1504+
1505+ if select_vars ; then
15051506 information "\
15061507IMPORTANT: PKI algorithm is $auto_algo${NL}
15071508Using Easy-RSA Auto-configured 'vars' file:
@@ -6778,6 +6779,11 @@ trap "exit 15" 15
67786779# Get host details - No configurable input allowed
67796780detect_host
67806781
6782+ # Allow selective use of 'set -e'
6783+ if [ "$EASYRSA_SET_ERREXIT" ]; then
6784+ set -e || die "Cannot set -e"
6785+ fi
6786+
67816787# Protect variables from alteration by sourcing vars file
67826788# undocumented, not designed for use
67836789[ -z "$EASYRSA_ALIAS_DAYS" ] || \
You can’t perform that action at this time.
0 commit comments