Procházet zdrojové kódy

use certbot for gatering informations

andre před 8 měsíci
rodič
revize
a5b3f9eed8
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      controllers/GetSSLDaysController.php

+ 1 - 1
controllers/GetSSLDaysController.php

@@ -11,7 +11,7 @@ class GetSSLDaysController {
             return;
         }
 
-        exec("sudo certbot certificates --cert-name $domain", $phpOutput, $phpReturnCode);
+        exec("sudo certbot certificates --cert-name $domain | grep 'Expiry'", $phpOutput, $phpReturnCode);
         $sslData = implode("\n",$phpOutput);
         /*
         $certFile = "/etc/letsencrypt/live/$domain/fullchain.pem";