|
|
@ -73,8 +73,11 @@ class NginxVhostHelper |
|
|
|
$content = file_get_contents($path); |
|
|
|
|
|
|
|
// check for path of sites
|
|
|
|
preg_match(self::REGEX_SSL_CERTIFICATE, $content, $matches); |
|
|
|
preg_match(self::REGEX_SSL_CERTIFICATE_KEY, $content, $matches); |
|
|
|
preg_match(self::REGEX_SSL_CERTIFICATE, $content, $certificates); |
|
|
|
$matches = array_merge([], $certificates); |
|
|
|
|
|
|
|
preg_match(self::REGEX_SSL_CERTIFICATE_KEY, $content, $certificates); |
|
|
|
$matches = array_merge($matches, $certificates); |
|
|
|
|
|
|
|
// check ssl certificates
|
|
|
|
if (count($matches) >= 2) { |
|
|
@ -89,7 +92,6 @@ class NginxVhostHelper |
|
|
|
|
|
|
|
if (isset($openssl[1])) { |
|
|
|
$openssl = str_replace('notAfter=', '', $openssl[1]); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|