From c1b3b26185ae15ed37429a82a98e13f6b97737c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20K=C3=B6rber?= Date: Tue, 21 May 2019 19:27:08 +0200 Subject: [PATCH] Documentation used a deprecated method, fixed --- src/site/markdown/challenge/dns-01.md | 2 +- src/site/markdown/challenge/http-01.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/site/markdown/challenge/dns-01.md b/src/site/markdown/challenge/dns-01.md index cac0463a..12426040 100644 --- a/src/site/markdown/challenge/dns-01.md +++ b/src/site/markdown/challenge/dns-01.md @@ -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); 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. diff --git a/src/site/markdown/challenge/http-01.md b/src/site/markdown/challenge/http-01.md index 0ad3cb67..8f48801e 100644 --- a/src/site/markdown/challenge/http-01.md +++ b/src/site/markdown/challenge/http-01.md @@ -9,7 +9,7 @@ Http01Challenge challenge = auth.findChallenge(Http01Challenge.TYPE); String token = challenge.getToken(); 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.