mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-12 09:09:39 +01:00
feat(ADMINISTRATION-1): added ev subjects
This commit is contained in:
parent
b8f8f0b7db
commit
3c349e122b
@ -315,6 +315,10 @@ class X509
|
|||||||
'id-at-uniqueIdentifier' => '2.5.4.45',
|
'id-at-uniqueIdentifier' => '2.5.4.45',
|
||||||
'id-at-role' => '2.5.4.72',
|
'id-at-role' => '2.5.4.72',
|
||||||
'id-at-postalAddress' => '2.5.4.16',
|
'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',
|
//'id-domainComponent' => '0.9.2342.19200300.100.1.25',
|
||||||
//'pkcs-9' => '1.2.840.113549.1.9',
|
//'pkcs-9' => '1.2.840.113549.1.9',
|
||||||
@ -1538,6 +1542,20 @@ class X509
|
|||||||
private function translateDNProp($propName)
|
private function translateDNProp($propName)
|
||||||
{
|
{
|
||||||
switch (strtolower($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 'id-at-countryname':
|
||||||
case 'countryname':
|
case 'countryname':
|
||||||
case 'c':
|
case 'c':
|
||||||
|
Loading…
Reference in New Issue
Block a user