mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-12 09:09:39 +01: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(
|
||||
'id-ce-basicConstraints',
|
||||
array_unique(array_merge(['cA' => true], $basicConstraints)),
|
||||
array_merge(['cA' => true], $basicConstraints),
|
||||
true
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user