AcmeProtocolException is sufficient for recursion excess

pull/18/head
Richard Körber 2016-06-09 22:55:53 +02:00
parent 726aff9b80
commit 288bf31c24
1 changed files with 5 additions and 2 deletions

View File

@ -465,8 +465,11 @@ public abstract class AbstractAcmeClient implements AcmeClient {
throw new AcmeNetworkException(ex);
}
}
if (link != null)
throw new AcmeException("Recursion limit reached (" + MAX_CHAIN_LENGTH + "). Didn't get " + link);
}
if (link != null) {
throw new AcmeProtocolException("Recursion limit reached (" + MAX_CHAIN_LENGTH
+ "). Didn't get " + link);
}
return certChain.toArray(new X509Certificate[certChain.size()]);
}