Skip to content

Commit

Permalink
sign-req, renew: Use easyrsa_openssl() wrapper to fetch DN
Browse files Browse the repository at this point in the history
This is required for SSL command 'req', to provide a working SSL config.

Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Mar 24, 2024
1 parent b966544 commit 1413528
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -2258,8 +2258,7 @@ for '$EASYRSA_CERT_EXPIRE' days"
if [ "$EASYRSA_CP_EXT" ]; then
# cature complete CSR
req_text="$(
OPENSSL_CONF=/dev/null \
"$EASYRSA_OPENSSL" req -in "$req_in" -noout -text
easyrsa_openssl req -in "$req_in" -noout -text
)" || die "sign-req: openssl: req_text"

# Check CSR for any requested SAN
Expand Down Expand Up @@ -2890,8 +2889,7 @@ Cannot renew this certificate, a conflicting file exists:
if [ "$EASYRSA_CP_EXT" ]; then
# cature complete CSR
req_text="$(
OPENSSL_CONF=/dev/null \
"$EASYRSA_OPENSSL" req -in "$req_in" -noout -text
easyrsa_openssl req -in "$req_in" -noout -text
)" || die "renew: openssl: req_text"

# Check CSR for any requested SAN
Expand Down

0 comments on commit 1413528

Please sign in to comment.