From 1dba4262e9f8204e4b9a4607bfcc23b562035172 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 15 Sep 2024 21:45:40 -0500 Subject: [PATCH] X509: CRL default version should be v1 - not v2 --- phpseclib/File/ASN1/Maps/TBSCertList.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpseclib/File/ASN1/Maps/TBSCertList.php b/phpseclib/File/ASN1/Maps/TBSCertList.php index 49b3cfc57..8e00f4d85 100644 --- a/phpseclib/File/ASN1/Maps/TBSCertList.php +++ b/phpseclib/File/ASN1/Maps/TBSCertList.php @@ -27,9 +27,9 @@ abstract class TBSCertList 'children' => [ 'version' => [ 'type' => ASN1::TYPE_INTEGER, - 'mapping' => ['v1', 'v2', 'v3'], + 'mapping' => ['v1', 'v2'], 'optional' => true, - 'default' => 'v2' + 'default' => 'v1' ], 'signature' => AlgorithmIdentifier::MAP, 'issuer' => Name::MAP,