mirror of https://github.com/shred/acme4j
Remove new-reg workaround
parent
cdb2362892
commit
8e1563a410
|
@ -19,11 +19,8 @@ import java.net.URL;
|
|||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.shredzone.acme4j.Session;
|
||||
import org.shredzone.acme4j.exception.AcmeException;
|
||||
import org.shredzone.acme4j.provider.AbstractAcmeProvider;
|
||||
import org.shredzone.acme4j.provider.AcmeProvider;
|
||||
import org.shredzone.acme4j.util.JSON;
|
||||
|
||||
/**
|
||||
* An {@link AcmeProvider} for <em>Pebble</em>.
|
||||
|
@ -83,15 +80,4 @@ public class PebbleAcmeProvider extends AbstractAcmeProvider {
|
|||
}
|
||||
}
|
||||
|
||||
// TODO PEBBLE: new-reg
|
||||
// https://github.com/letsencrypt/pebble/pull/24
|
||||
@Override
|
||||
public JSON directory(Session session, URI serverUri) throws AcmeException {
|
||||
JSON json = super.directory(session, serverUri);
|
||||
if (Pebble.workaround()) {
|
||||
json = JSON.parse(json.toString().replace("\"new-reg\"", "\"new-account\""));
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue