mirror of https://github.com/shred/acme4j
Merge pull request #45 from zosocanuck/zosocanuck-patch-1
looping through chain will hit recursion limit since updated link is …pull/47/head
commit
0fe2392f65
|
@ -126,7 +126,7 @@ public class Certificate extends AcmeResource {
|
||||||
URL link = chainCertUrl;
|
URL link = chainCertUrl;
|
||||||
while (link != null && certChain.size() < MAX_CHAIN_LENGTH) {
|
while (link != null && certChain.size() < MAX_CHAIN_LENGTH) {
|
||||||
try (Connection conn = getSession().provider().connect()) {
|
try (Connection conn = getSession().provider().connect()) {
|
||||||
conn.sendRequest(chainCertUrl, getSession());
|
conn.sendRequest(link, getSession());
|
||||||
conn.accept(HttpURLConnection.HTTP_OK);
|
conn.accept(HttpURLConnection.HTTP_OK);
|
||||||
|
|
||||||
certChain.add(conn.readCertificate());
|
certChain.add(conn.readCertificate());
|
||||||
|
|
Loading…
Reference in New Issue