mirror of https://github.com/shred/acme4j
Fix dns-01 challenge IT
parent
8e1563a410
commit
8ad616da79
|
@ -43,7 +43,7 @@ import org.xbill.DNS.Type;
|
||||||
public class DnsServer {
|
public class DnsServer {
|
||||||
private static final Logger LOG = LoggerFactory.getLogger(DnsServer.class);
|
private static final Logger LOG = LoggerFactory.getLogger(DnsServer.class);
|
||||||
private static final int UDP_SIZE = 512;
|
private static final int UDP_SIZE = 512;
|
||||||
private static final long TTL = 86321L;
|
private static final long TTL = 300L;
|
||||||
|
|
||||||
private final Map<String, String> txtRecords = synchronizedMap(new HashMap<>());
|
private final Map<String, String> txtRecords = synchronizedMap(new HashMap<>());
|
||||||
private Thread thread = null;
|
private Thread thread = null;
|
||||||
|
|
|
@ -127,7 +127,7 @@ public class OrderIT extends PebbleITBase {
|
||||||
Dns01Challenge challenge = auth.findChallenge(Dns01Challenge.TYPE);
|
Dns01Challenge challenge = auth.findChallenge(Dns01Challenge.TYPE);
|
||||||
assertThat(challenge, is(notNullValue()));
|
assertThat(challenge, is(notNullValue()));
|
||||||
|
|
||||||
dnsServer.addTxtRecord(TEST_DOMAIN, challenge.getDigest());
|
dnsServer.addTxtRecord("_acme-challenge." + TEST_DOMAIN, challenge.getDigest());
|
||||||
return challenge;
|
return challenge;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue