Browse Source

adding #45

master
Björn 4 years ago
parent
commit
892c7ac130
1 changed files with 5 additions and 7 deletions
  1. +5
    -7
      app/Helpers/NginxVhostHelper.php

+ 5
- 7
app/Helpers/NginxVhostHelper.php View File

@ -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]);
}
} }
} }


Loading…
Cancel
Save