Skip to content

Commit

Permalink
sign-req with SAN: Add POSIX related comment for 'grep -A' use
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed May 14, 2024
1 parent 168a0a0 commit 474f849
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -2539,10 +2539,11 @@ Forced subject=
grep -s 'X509v3 Subject Alternative Name'
then
# extract requested SAN
# 'grep -A' may not be strictly POSIX, die on error
req_x509_san="$(
echo "$req_text" | \
grep -A 1 'X509v3 Subject Alternative Name'
)" || die "sign-req: req_x509_san: grep -A 1 "
)" || die "sign-req: req_x509_san: grep -A 1 (POSIX)"
else
# No requested SAN
req_x509_san=
Expand Down

0 comments on commit 474f849

Please sign in to comment.