The script does not currently support multiple domain names, and assumes that the domain name can be extracted from the certificate name. The problem with just changing ${2} to ${@} is that ${1}, i.e. "--issue", will be included in the array, so parsing a certificate type from it will fail. Try using shift; CERTNAME="
[email protected]". However, there should be only one certificate file and only one certificate type, so you might want to derive them from ${2} in any case. Where the script passes -d ${CERTFILE} to acme.sh, yo u will want to pass all your domains, for example: acme.sh --issue -d example.com -d www.example.com -d cp.example.com The details of changing the script to handle an array of names here are beyond the scope of this comment. In the " # $1 is eventtype and may be ignored" case, vTM will only generate alerts for a single certificate at once, so you would have to retrieve details of the existing certificate before trying to renew it for the same list of domains. Doing so is also beyond the scope of this comment.
... View more