From 3c349e122b1dfccd5784e918376231c87c768973 Mon Sep 17 00:00:00 2001 From: Tobias Date: Sun, 4 Jun 2023 14:30:38 +0200 Subject: [PATCH] feat(ADMINISTRATION-1): added ev subjects --- phpseclib/File/X509.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/phpseclib/File/X509.php b/phpseclib/File/X509.php index a99252eb..b9f1c79e 100644 --- a/phpseclib/File/X509.php +++ b/phpseclib/File/X509.php @@ -315,6 +315,10 @@ class X509 'id-at-uniqueIdentifier' => '2.5.4.45', 'id-at-role' => '2.5.4.72', 'id-at-postalAddress' => '2.5.4.16', + 'jurisdictionOfIncorporationCountryName' => '1.3.6.1.4.1.311.60.2.1.3', + 'jurisdictionOfIncorporationStateOrProvinceName' => '1.3.6.1.4.1.311.60.2.1.2', + 'jurisdictionLocalityName' => '1.3.6.1.4.1.311.60.2.1.1', + 'id-at-businessCategory' => '2.5.4.15', //'id-domainComponent' => '0.9.2342.19200300.100.1.25', //'pkcs-9' => '1.2.840.113549.1.9', @@ -1538,6 +1542,20 @@ class X509 private function translateDNProp($propName) { switch (strtolower($propName)) { + case 'jurisdictionofincorporationcountryname': + case 'jurisdictioncountryname': + case 'jurisdictionc': + return 'jurisdictionOfIncorporationCountryName'; + case 'jurisdictionofincorporationstateorprovincename': + case 'jurisdictionstateorprovincename': + case 'jurisdictionst': + return 'jurisdictionOfIncorporationStateOrProvinceName'; + case 'jurisdictionlocalityname': + case 'jurisdictionl': + return 'jurisdictionLocalityName'; + case 'id-at-businesscategory': + case 'businesscategory': + return 'id-at-businessCategory'; case 'id-at-countryname': case 'countryname': case 'c':