robrichards / xmlseclibs

A PHP library for XML Security
BSD 3-Clause "New" or "Revised" License
386 stars 180 forks source link

X509IssuerName wrong oid 2.5.4.97 #237

Open PaolaRuby opened 2 years ago

PaolaRuby commented 2 years ago

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 https://github.com/robrichards/xmlseclibs/blob/a268e601bc47493a42a70f050c0661f1fd592bb9/src/XMLSecurityDSig.php#L1058-L1067