Browse Source

use certbot for gatering informations

andre 8 months ago
parent
commit
75da82585f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      controllers/GetSSLDaysController.php

+ 1 - 2
controllers/GetSSLDaysController.php

@@ -11,8 +11,7 @@ class GetSSLDaysController {
             return;
             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", $phpOutput, $phpReturnCode);
         $sslData = implode("\n",$phpOutput);
         $sslData = implode("\n",$phpOutput);
         /*
         /*
         $certFile = "/etc/letsencrypt/live/$domain/fullchain.pem";
         $certFile = "/etc/letsencrypt/live/$domain/fullchain.pem";