diff --git a/gen-unifi-cert.sh b/gen-unifi-cert.sh index ded1449..db476d6 100755 --- a/gen-unifi-cert.sh +++ b/gen-unifi-cert.sh @@ -35,7 +35,7 @@ for val in "${domains[@]}"; do DOMAINS="${DOMAINS} -d ${val} " done -MAINDOMIN=${MAINDOMAIN} +MAINDOMAIN=${domains[0]} if [[ $renew == "yes" ]]; then LEOPTIONS=${RENEWCERT}