1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-12 17:17:26 +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:
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( $this->setExtension(
'id-ce-basicConstraints', 'id-ce-basicConstraints',
array_unique(array_merge(['cA' => true], $basicConstraints)), array_merge(['cA' => true], $basicConstraints),
true true
); );