diff --git a/cli/Valet/Site.php b/cli/Valet/Site.php index 2a76190..e06d9e2 100644 --- a/cli/Valet/Site.php +++ b/cli/Valet/Site.php @@ -85,7 +85,8 @@ function getCertificates($path) return collect($this->files->scanDir($path))->filter(function ($value, $key) { return ends_with($value, '.crt'); })->map(function ($cert) { - return substr($cert, 0, -8); + $tld = $this->config->read()['tld']; + return substr($cert, 0, -(strlen($tld)+5)); })->flip(); }