Don't filter basicConstraints on unique values

array_unique check values which is not relevant for basicConstraints where `true == "foo"` so prevent to specify any other constraint (like pathlen)
This commit is contained in:
Kyle 2021-04-13 17:04:16 +02:00 committed by terrafrost
parent 03e9060cbb
commit 8123521307

View File

@ -2751,7 +2751,7 @@ class X509
$this->setExtension(
'id-ce-basicConstraints',
array_unique(array_merge(['cA' => true], $basicConstraints)),
array_merge(['cA' => true], $basicConstraints),
true
);