Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

easyrsa-tools.lib: Add 'locate_support-files' to recreate temp-session #1153

Merged
merged 2 commits into from
May 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions dev/easyrsa-tools.lib
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh

# Easy-RSA tools library v1.0

# Easy-RSA 3.x does not source into the environment directly.
Expand Down Expand Up @@ -90,6 +92,7 @@ iso_8601_cert_enddate: missing cert"

# On error return, let the caller decide what to do
if fn_ssl_out="$(
EASYRSA_VERBOSE=
easyrsa_openssl x509 -in "$1" -noout \
-enddate -dateopt iso_8601
)"
Expand Down Expand Up @@ -489,6 +492,7 @@ read_db() {
# Recreate temp session
remove_secure_session || \
die "read_db - remove_secure_session"
locate_support_files
secure_session || \
die "read_db - secure_session"
# Recreate openssl-easyrsa.cnf (Temp)
Expand Down