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. } } }