Browse Source

Merge pull request #3 from koter84/master

fix creating config for domains with more than 1 alternative name
pull/4/head
serverco 10 years ago
parent
commit
974856afdd
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      getssl

+ 2
- 2
getssl View File

@ -304,8 +304,8 @@ RENEW_ALLOW=\"30\"
echo "$EX_CERT" > $DOMAIN_DIR/${DOMAIN}.crt
fi
EX_SANS=$(echo "$EX_CERT" | openssl x509 -noout -text 2>/dev/null| grep "Subject Alternative Name" -A2 \
| grep -Eo "DNS:[a-zA-Z 0-9.]*" |sed "s@DNS:$DOMAIN@@g"| cut -c 5-)
EX_SANS=${EX_SANS//$'\n'/}
| grep -Eo "DNS:[a-zA-Z 0-9.]*" | sed "s@DNS:$DOMAIN@@g" | grep -v '^$' | cut -c 5-)
EX_SANS=${EX_SANS//$'\n'/','}
fi
echo "# uncomment and modify any variables you need
# The staging server is best for testing


Loading…
Cancel
Save