Bug#551240: Normalize the certificate issuer name before using.

This commit is contained in:
S Rahul 2009-11-03 05:03:19 +00:00
parent 8b7e9fa6b9
commit 2c88f4a775

View File

@ -37,6 +37,7 @@ import org.apache.xerces.parsers.DOMParser;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import org.w3c.dom.*; import org.w3c.dom.*;
import org.xml.sax.InputSource; import org.xml.sax.InputSource;
import org.apache.xml.security.utils.RFC2253Parser;
import java.util.*; import java.util.*;
import java.security.KeyStore; import java.security.KeyStore;
@ -215,7 +216,7 @@ public final class SecureTokenUtil
if (cert != null) if (cert != null)
{ {
// Add this certificate to our map // 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);
} }
} }
} }