mirror of https://github.com/shred/acme4j
looping through chain will hit recursion limit since updated link is not being sent as a request.
parent
544be26376
commit
89155da93f
|
@ -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