looping through chain will hit recursion limit since updated link is not being sent as a request.

pull/45/head
Ivan Wallis 2017-11-15 20:53:48 -08:00 committed by GitHub
parent 544be26376
commit 89155da93f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ public class Certificate extends AcmeResource {
URL link = chainCertUrl;
while (link != null && certChain.size() < MAX_CHAIN_LENGTH) {
try (Connection conn = getSession().provider().connect()) {
conn.sendRequest(chainCertUrl, getSession());
conn.sendRequest(link, getSession());
conn.accept(HttpURLConnection.HTTP_OK);
certChain.add(conn.readCertificate());