Bug#551240: Normalize the certificate issuer name before using.
This commit is contained in:
parent
8b7e9fa6b9
commit
2c88f4a775
@ -37,6 +37,7 @@ import org.apache.xerces.parsers.DOMParser;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.w3c.dom.*;
|
||||
import org.xml.sax.InputSource;
|
||||
import org.apache.xml.security.utils.RFC2253Parser;
|
||||
|
||||
import java.util.*;
|
||||
import java.security.KeyStore;
|
||||
@ -215,7 +216,7 @@ public final class SecureTokenUtil
|
||||
if (cert != null)
|
||||
{
|
||||
// Add this certificate to our map
|
||||
x509ISNCertMap.put("IssuerDN=" + cert.getIssuerDN().getName() + " SN=" + cert.getSerialNumber().toString(), cert);
|
||||
x509ISNCertMap.put("IssuerDN=" + RFC2253Parser.normalize(cert.getIssuerDN().getName()) + " SN=" + cert.getSerialNumber().toString(), cert);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user