소스 검색

use certbot for gatering informations

andre 8 달 전
부모
커밋
a5b3f9eed8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      controllers/GetSSLDaysController.php

+ 1 - 1
controllers/GetSSLDaysController.php

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