1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-07 09:10:03 +01:00

in unsecure() always try to clean keychain

This commit is contained in:
kroko / Reinis Adovičs
2018-02-08 20:38:19 +02:00
committed by GitHub
parent 3af02dfba8
commit 79b539840d

View File

@@ -360,6 +360,7 @@ function unsecure($url)
$this->files->unlink($this->certificatesPath().'/'.$url.'.key');
$this->files->unlink($this->certificatesPath().'/'.$url.'.csr');
$this->files->unlink($this->certificatesPath().'/'.$url.'.crt');
}
$this->cli->run(sprintf('sudo security delete-certificate -c "%s" /Library/Keychains/System.keychain', $url));
$this->cli->run(sprintf('sudo security delete-certificate -c "*.%s" /Library/Keychains/System.keychain', $url));
@@ -368,7 +369,6 @@ function unsecure($url)
$url, '@laravel.valet'
));
}
}
/**
* Get the path to the linked Valet sites.