mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-05 21:17:53 +00:00
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:
parent
03e9060cbb
commit
8123521307
@ -2751,7 +2751,7 @@ class X509
|
|||||||
|
|
||||||
$this->setExtension(
|
$this->setExtension(
|
||||||
'id-ce-basicConstraints',
|
'id-ce-basicConstraints',
|
||||||
array_unique(array_merge(['cA' => true], $basicConstraints)),
|
array_merge(['cA' => true], $basicConstraints),
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user