From f23b6d583b7da18dd190d67f0bd7eeded80883f2 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 15 Sep 2024 21:43:11 -0500 Subject: [PATCH] X509: CRL fixes --- phpseclib/File/X509.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpseclib/File/X509.php b/phpseclib/File/X509.php index 65d5069b..25d5db9e 100644 --- a/phpseclib/File/X509.php +++ b/phpseclib/File/X509.php @@ -4073,11 +4073,11 @@ class File_X509 $version = isset($tbsCertList['version']) ? $tbsCertList['version'] : 0; if (!$version) { if (!empty($tbsCertList['crlExtensions'])) { - $version = 1; // v2. + $version = 'v2'; // v2. } elseif (!empty($tbsCertList['revokedCertificates'])) { foreach ($tbsCertList['revokedCertificates'] as $cert) { if (!empty($cert['crlEntryExtensions'])) { - $version = 1; // v2. + $version = 'v2'; // v2. } } }