Commit 2fc23db2 authored by Marius Burkard's avatar Marius Burkard

- limit domains for LE cert to 100, fixes #4789

parent 39f51a4c
......@@ -250,6 +250,12 @@ class letsencrypt {
unset($le_domains);
@unlink('/usr/local/ispconfig/interface/acme/.well-known/acme-challenge/' . $le_rnd_file);
$le_domain_count = count($temp_domains);
if($le_domain_count > 100) {
$temp_domains = array_splice($temp_domains, 0, 100);
$app->log("There were " . $le_domain_count . " domains in the domain list. LE only supports 100, so we strip the rest.", LOGLEVEL_WARN);
}
// generate cli format
foreach($temp_domains as $temp_domain) {
$cli_domain_arg .= (string) " --domains " . $temp_domain;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment