Documentation used a deprecated method, fixed

pull/81/head
Richard Körber 2019-05-21 19:27:08 +02:00
parent 210b2aa453
commit c1b3b26185
No known key found for this signature in database
GPG Key ID: AAB9FD19C78AA3E0
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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.