1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 08:40:09 +01:00

Keep random affix only for CN

This commit is contained in:
kroko / Reinis Adovičs
2018-01-31 09:24:17 +02:00
committed by GitHub
parent 694bd5d571
commit 4500e6e0d2

View File

@@ -211,8 +211,8 @@ function createCa()
return;
}
$oName = 'Laravel Valet CA Self Signed O';
$cName = 'Laravel Valet CA Self Signed C';
$oName = 'Laravel Valet CA Self Signed Organization';
$cName = 'Laravel Valet CA Self Signed CN ';
$affix = '';
if ($this->files->exists($caKeyPath)) {
@@ -237,7 +237,6 @@ function createCa()
$affix = bin2hex(openssl_random_pseudo_bytes(15));
$this->files->putAsUser($caAffixPath, $affix);
$oName .= $affix;
$cName .= $affix;
$this->cli->runAsUser(sprintf(