aboutsummaryrefslogtreecommitdiff
path: root/moaSig/moa-sig-lib/src/main/java
diff options
context:
space:
mode:
authorThomas <>2022-04-01 18:41:36 +0200
committerThomas <>2022-04-01 18:41:36 +0200
commit7e640d854379c051c0f165f0b3e4e76833a020b5 (patch)
treea5c6107fd0c9861efaba8a1da8a73019a17db2de /moaSig/moa-sig-lib/src/main/java
parent8420857c2b453077a314cd111f1a9734ff160219 (diff)
downloadmoa-sig-7e640d854379c051c0f165f0b3e4e76833a020b5.tar.gz
moa-sig-7e640d854379c051c0f165f0b3e4e76833a020b5.tar.bz2
moa-sig-7e640d854379c051c0f165f0b3e4e76833a020b5.zip
fix(pki): change IssuerName nomalization to fix invalid loading of CRLRetention intervalle configuration
Diffstat (limited to 'moaSig/moa-sig-lib/src/main/java')
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationProvider.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationProvider.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationProvider.java
index 64bd066..4596109 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationProvider.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationProvider.java
@@ -47,6 +47,8 @@ import at.gv.egovernment.moaspss.util.DOMUtils;
import at.gv.egovernment.moaspss.util.MiscUtil;
import iaik.asn1.structures.Name;
import iaik.pki.revocation.RevocationSourceTypes;
+import iaik.pki.utils.NameUtils;
+import iaik.pki.utils.UtilsException;
import iaik.utils.RFC2253NameParser;
import iaik.utils.RFC2253NameParserException;
@@ -724,16 +726,14 @@ public class ConfigurationProvider {
*/
public Set getDistributionPoints(X509Certificate cert) {
try {
- final RFC2253NameParser nameParser =
- new RFC2253NameParser(cert.getIssuerDN().toString());
- final String caIssuerDN = nameParser.parse().getName();
+ final String caIssuerDN = NameUtils.getNormalizedName((Name)cert.getIssuerDN());
final Set dps = (Set) distributionPoints.get(caIssuerDN);
if (dps == null) {
return Collections.EMPTY_SET;
}
return dps;
- } catch (final RFC2253NameParserException e) {
+ } catch (final UtilsException e) {
return Collections.EMPTY_SET;
}
}