mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-11-14 21:03:43 +01:00
allow for spaces when extracting commonName from csr (fixes #423)
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -498,7 +498,7 @@ extract_altnames() {
|
||||
|
||||
else
|
||||
# No SANs, extract CN
|
||||
altnames="$( <<<"${reqtext}" grep '^[[:space:]]*Subject:' | _sed -e 's/.* CN=([^ /,]*).*/\1/' )"
|
||||
altnames="$( <<<"${reqtext}" grep '^[[:space:]]*Subject:' | _sed -e 's/.* CN ?= ?([^ /,]*).*/\1/' )"
|
||||
echo "${altnames}"
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user