info('LetsEncrypt installing...'); $output = []; exec('apt update 2>&1', $output); exec('apt install -y software-properties-common 2>&1', $output); // @TODO apt add a Warning for no good, in a later version output will be scanned for helpfull infos $this->line(implode("\n", Install::filterAptMessages($output))); $output = []; $this->info('LetsEncrypt adding ppa for certbot...'); exec('add-apt-repository -y universe 2>&1', $output); exec('add-apt-repository -y -r ppa:certbot/certbot 2>&1', $output); // @TODO apt add a Warning for no good, in a later version output will be scanned for helpfull infos $this->line(implode("\n", Install::filterAptMessages($output))); $output = []; $this->info('LetsEncrypt install certbot...'); exec('apt update 2>&1', $output); exec('apt install -y certbot python3-certbot-nginx 2>&1', $output); // @TODO apt add a Warning for no good, in a later version output will be scanned for helpfull infos $this->line(implode("\n", Install::filterAptMessages($output))); $output = []; $this->info('LetsEncrypt generate dhparam.pem...'); system('openssl dhparam -out /etc/ssl/certs/dhparam.pem 4096', $ouput); if (Install::isReady('certbot')) { $this->info('LetsEncrypt installing...Success! \o/'); } else { $this->error("Failed! Please check log-file!"); } } }