mirror of https://github.com/shred/acme4j
Documentation used a deprecated method, fixed
parent
210b2aa453
commit
c1b3b26185
|
@ -8,7 +8,7 @@ With the `dns-01` challenge, you prove to the CA that you are able to control th
|
||||||
Dns01Challenge challenge = auth.findChallenge(Dns01Challenge.TYPE);
|
Dns01Challenge challenge = auth.findChallenge(Dns01Challenge.TYPE);
|
||||||
|
|
||||||
String digest = challenge.getDigest();
|
String digest = challenge.getDigest();
|
||||||
String domain = auth.getDomain();
|
String domain = auth.getIdentifier().getDomain();
|
||||||
```
|
```
|
||||||
|
|
||||||
The CA expects a TXT record at `_acme-challenge.${domain}` with the `digest` string as value.
|
The CA expects a TXT record at `_acme-challenge.${domain}` with the `digest` string as value.
|
||||||
|
|
|
@ -9,7 +9,7 @@ Http01Challenge challenge = auth.findChallenge(Http01Challenge.TYPE);
|
||||||
|
|
||||||
String token = challenge.getToken();
|
String token = challenge.getToken();
|
||||||
String content = challenge.getAuthorization();
|
String content = challenge.getAuthorization();
|
||||||
String domain = auth.getDomain();
|
String domain = auth.getIdentifier().getDomain();
|
||||||
```
|
```
|
||||||
|
|
||||||
`token` is the name of the file that will be requested by the CA server. It must contain the `content` string, without any leading or trailing white spaces or line breaks. The `Content-Type` header must be either `text/plain` or absent.
|
`token` is the name of the file that will be requested by the CA server. It must contain the `content` string, without any leading or trailing white spaces or line breaks. The `Content-Type` header must be either `text/plain` or absent.
|
||||||
|
|
Loading…
Reference in New Issue