mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-03-13 05:35:16 +01:00
Remove additional whitespace from extract_altnames
This commit is contained in:
@@ -589,11 +589,11 @@ extract_altnames() {
|
||||
fi
|
||||
# strip away the DNS: prefix
|
||||
altnames="$( <<<"${altnames}" _sed -e 's/^(DNS:|othername:<unsupported>)//' )"
|
||||
echo "${altnames}" | tr '\n' ' '
|
||||
printf "%s" "${altnames}" | tr '\n' ' '
|
||||
else
|
||||
# No SANs, extract CN
|
||||
altnames="$( <<<"${reqtext}" grep '^[[:space:]]*Subject:' | _sed -e 's/.* CN ?= ?([^ /,]*).*/\1/' )"
|
||||
echo "${altnames}"
|
||||
printf "%s" "${altnames}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user