Hmm.. your script does not support multiple subdomains, it just adds "-d www.domain.tld" when subdomain www is enabled in ISPConfig. I have added real support for subdomains in your script on GitHub and created a pull request. I also fixed a few other things, feel free to merge. Thanks!
tomorrow LE will be open (beta) for all without whitelist, meanwhile there are some other change in webrootmetod, https://community.letsencrypt.org/t/using-the-webroot-domain-verification-method/1445/48 (i just commented on your pull request on sjau git's)
I have added a dry-run option because during my tests I ran into rate limitations. To avoid that you can now specify '-n' or '--dry-run' on the le2ispc command line. It will only print the letsencrypt command without executing it. I also removed the --agree-dev-preview option, which is now obsolete.
@Sir Henry I added some changes. Basically creating the .well-known dirs now in the php script and setting appropriate permissions - had issues before now. Also temporarily disabling the .htaccess file in the webroot.
so, got now for almost all sub/domains according certs. There's still a rate limit on how many sub/domains you can have. I think it's around 8 certs per domain per 2 months or something. So using: domain.tld www.domain.tld sub1.domain.tld sub2.domain.tld sub3.domain.tld sub4.doamin.tld sub5.domain.tld sub6.domain.tld will make you hit the limit. One way around those limits would currently be to request a SAN cert for all subs. I
So, some major changes here: - reworked the API calls into seperate functions and also the process of getting the sites domain info through the API - fixed nginx directive writing. Before nginx directive was written to ISPC at the end but at that point it would already have failed. Hence I reworked the whole API thing and made seperate functions for them. Now the call is made if the directive doesn't exist yet. Since changes are not reflected immediately when altering stuff through the API, I also added a 60s sleep call. - made renaming of .htaccess for apache optional
I've installed the plugin from github, following everything to the letter, but I keep getting the following error: IMPORTANT NOTES: - The following 'urn:acme:error:connection' errors were reported by the server: Domains: www.dru.designfyn.dk Error: The server could not connect to the client for DV What have I missed?