organizationIdentifier 2.5.4.97 not properly converted
On X509IssuerName I'm getting UNDEF=
UNDEF=VATES-A66721499,CN=UANATACA CA2 2016,OU=TSP-UANATACA,O=UANATACA S.A.,L=Barcelona,C=ES
but must be something like
OID.2.5.4.97=VATES-A66721499,CN=UANATACA CA1 2016,OU=TSP-UANATACA,O=UANATACA S.A.,L=Barcelona,C=ES
Example:
https://github.com/luisgoncalves/xades4j/blob/855738c009524a721b4e29f1c22dc27ce6a730d5/src/test/java/xades4j/verification/Issue166Test.java#L19-L21
|
if ($issuerSerial && ! empty($certData['issuer']) && ! empty($certData['serialNumber'])) { |
|
if (is_array($certData['issuer'])) { |
|
$parts = array(); |
|
foreach ($certData['issuer'] AS $key => $value) { |
|
array_unshift($parts, "$key=$value"); |
|
} |
|
$issuerName = implode(',', $parts); |
|
} else { |
|
$issuerName = $certData['issuer']; |
|
} |
organizationIdentifier 2.5.4.97 not properly converted
On
X509IssuerNameI'm gettingUNDEF=UNDEF=VATES-A66721499,CN=UANATACA CA2 2016,OU=TSP-UANATACA,O=UANATACA S.A.,L=Barcelona,C=ESbut must be something like
OID.2.5.4.97=VATES-A66721499,CN=UANATACA CA1 2016,OU=TSP-UANATACA,O=UANATACA S.A.,L=Barcelona,C=ESExample:
https://github.com/luisgoncalves/xades4j/blob/855738c009524a721b4e29f1c22dc27ce6a730d5/src/test/java/xades4j/verification/Issue166Test.java#L19-L21
xmlseclibs/src/XMLSecurityDSig.php
Lines 1058 to 1067 in a268e60