Parcourir la source

use certbot for gatering informations

andre il y a 8 mois
Parent
commit
7f9203b8e3
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 | grep 'Expiry' | sed 's/..:..:..+..:..../\n/g' | sed 's/days)//g' | sed 's/[[:space:]]//g' | cut -d:  -f2", $phpOutput, $phpReturnCode);
+        exec("sudo certbot certificates --cert-name $domain | grep 'Expiry' | sed 's/days)//g' | sed 's/[[:space:]]//g' | cut -d:  -f2", $phpOutput, $phpReturnCode);
         $sslData = implode("\n",$phpOutput);
         /*
         $certFile = "/etc/letsencrypt/live/$domain/fullchain.pem";