Add try/catch for IllegalArgumentException
@@ -484,9 +484,17 @@ protected static void getCRLIssuersFromDistributionPoint(
for (int j = 0; j < genNames.length; j++)
{
if (genNames[j].getTagNo() == GeneralName.directoryName)
+ {
+ try
{
issuers.add(X500Name.getInstance(genNames[j].getName()));
}
+ catch (IllegalArgumentException e)
+ {
+ throw new AnnotatedException(
+ "CRL issuer information from distribution point cannot be decoded.", e);
+ }
+ }
}
}
else
