|
@ -90,15 +90,13 @@ class NginxVhostHelper |
|
|
|
|
|
|
|
|
if (file_exists($matches[0]) && file_exists($matches[1])) { |
|
|
if (file_exists($matches[0]) && file_exists($matches[1])) { |
|
|
$result['ssl_certificate_exists'] = true; |
|
|
$result['ssl_certificate_exists'] = true; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// getting expired
|
|
|
|
|
|
exec('openssl x509 -noout -dates -in '.$matches[0], $openssl); |
|
|
|
|
|
|
|
|
|
|
|
var_dump($openssl); die(); |
|
|
|
|
|
|
|
|
// getting expired
|
|
|
|
|
|
exec('openssl x509 -noout -dates -in '.$matches[0], $openssl); |
|
|
|
|
|
|
|
|
if (isset($openssl[1])) { |
|
|
|
|
|
$openssl = str_replace('notAfter=', '', $openssl[1]); |
|
|
|
|
|
|
|
|
if (isset($openssl[1])) { |
|
|
|
|
|
$result['ssl_certificate_expired_at'] = str_replace('notAfter=', '', $openssl[1]); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|