From 8123521307da5564da2055823e5950da12e7997e Mon Sep 17 00:00:00 2001 From: Kyle Date: Tue, 13 Apr 2021 17:04:16 +0200 Subject: [PATCH] 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) --- phpseclib/File/X509.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/File/X509.php b/phpseclib/File/X509.php index b2a8d4cc..fdd12a21 100644 --- a/phpseclib/File/X509.php +++ b/phpseclib/File/X509.php @@ -2751,7 +2751,7 @@ class X509 $this->setExtension( 'id-ce-basicConstraints', - array_unique(array_merge(['cA' => true], $basicConstraints)), + array_merge(['cA' => true], $basicConstraints), true );