|
@@ -32,7 +32,7 @@ rateLimit();
|
|
|
|
|
|
addSite($_SESSION['id'], $_POST['dir'], $_POST['domain'], 'dns');
|
|
addSite($_SESSION['id'], $_POST['dir'], $_POST['domain'], 'dns');
|
|
|
|
|
|
-exec('2>&1 ' . CONF['ht']['sudo_path'] . ' ' . CONF['ht']['certbot_path'] . ' certonly' . (($_SESSION['type'] === 'approved') ? '' : ' --test-cert') . ' --key-type rsa --rsa-key-size 3072 --webroot --webroot-path ' . CONF['ht']['acme_path'] . ' --domain ' . $_POST['domain'], $output, $returnCode);
|
|
|
|
|
|
+exec('2>&1 ' . CONF['ht']['sudo_path'] . ' ' . CONF['ht']['certbot_path'] . ' certonly' . (($_SESSION['type'] === 'approved') ? '' : ' --test-cert') . ' --domain ' . $_POST['domain'], $output, $returnCode);
|
|
if ($returnCode !== 0)
|
|
if ($returnCode !== 0)
|
|
output(500, 'Certbot failed to get a Let\'s Encrypt certificate.', $output);
|
|
output(500, 'Certbot failed to get a Let\'s Encrypt certificate.', $output);
|
|
|
|
|