mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-06-09 00:22:10 -04:00
Merge 9171bc2f55 into 206f4494ac
This commit is contained in:
commit
7fb55a6734
1 changed files with 7 additions and 1 deletions
8
acme.sh
Executable file → Normal file
8
acme.sh
Executable file → Normal file
|
|
@ -487,6 +487,12 @@ _contains() {
|
|||
echo "$_str" | grep -- "$_sub" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
_contains_fixed() {
|
||||
_str="$1"
|
||||
_sub="$2"
|
||||
echo "$_str" | grep -F -- "$_sub" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
_hasfield() {
|
||||
_str="$1"
|
||||
_field="$2"
|
||||
|
|
@ -1399,7 +1405,7 @@ _readSubjectAltNamesFromCSR() {
|
|||
_dnsAltnames="$(${ACME_OPENSSL_BIN:-openssl} req -noout -text -in "$_csrfile" | grep "^ *DNS:.*" | tr -d ' \n')"
|
||||
_debug _dnsAltnames "$_dnsAltnames"
|
||||
|
||||
if _contains "$_dnsAltnames," "DNS:$_csrsubj,"; then
|
||||
if _contains_fixed "$_dnsAltnames," "DNS:$_csrsubj,"; then
|
||||
_debug "AltNames contains subject"
|
||||
_excapedAlgnames="$(echo "$_dnsAltnames" | tr '*' '#')"
|
||||
_debug _excapedAlgnames "$_excapedAlgnames"
|
||||
|
|
|
|||
Loading…
Reference in a new issue