Merge pull request #45 from zosocanuck/zosocanuck-patch-1

looping through chain will hit recursion limit since updated link is …
pull/47/head
Richard Körber 2017-11-16 22:13:13 +01:00 committed by GitHub
commit 0fe2392f65
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());