Squashed commit of the following:

commit 5aa65657e2fdda455a8549ed4f4e60cad6cf2389
Author: Matthias Andree <matthias.andree@gmx.de>
Date:   Sun Oct 2 20:44:08 2022 +0200

    Use POSIX [[:space:]] instead of \s for sed(1).

    2nd half of fix for #714.

    Obtained from:	topical@gmx.net
    URL:		https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266726

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-10-03 19:30:39 +01:00
parent 71de656090
commit 586f237897
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -3103,7 +3103,7 @@ display_san() {
if echo "$EASYRSA_EXTRA_EXTS" | grep -q subjectAltName; then
print "$(echo "$EASYRSA_EXTRA_EXTS" | grep subjectAltName |
sed 's/^\s*subjectAltName\s*=\s*//')"
sed 's/^[[:space:]]*subjectAltName[[:space:]]*=[[:space:]]*//')"
else
san="$(
x509v3san="X509v3 Subject Alternative Name:"