summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGeorg Jung <git@gjung.com>2020-03-24 13:16:23 +0200
committerGeorg Jung <git@gjung.com>2020-03-24 13:20:20 +0200
commit2f19cccb9a215aa01b2e76c1464ad395f829f29e (patch)
tree8c8932d41e0ddbe7ef066cd6db616412df07c005 /src
parent5d9af3840b19884fa2f1c8252b2af746bc758b19 (diff)
downloadletsencrypt-win-simple-2f19cccb9a215aa01b2e76c1464ad395f829f29e.zip
letsencrypt-win-simple-2f19cccb9a215aa01b2e76c1464ad395f829f29e.tar.gz
letsencrypt-win-simple-2f19cccb9a215aa01b2e76c1464ad395f829f29e.tar.bz2
#1439 improve cloudflare error message regarding api token
Diffstat (limited to 'src')
-rw-r--r--src/plugin.validation.dns.cloudflare/Cloudflare.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugin.validation.dns.cloudflare/Cloudflare.cs b/src/plugin.validation.dns.cloudflare/Cloudflare.cs
index 441eea2..2937903 100644
--- a/src/plugin.validation.dns.cloudflare/Cloudflare.cs
+++ b/src/plugin.validation.dns.cloudflare/Cloudflare.cs
@@ -65,7 +65,10 @@ namespace PKISharp.WACS.Plugins.ValidationPlugins.Dns
var zone = await GetHostedZone(ctx, recordName).ConfigureAwait(false);
if (zone == null)
{
- throw new InvalidOperationException($"The zone could not be found using the Cloudflare API, thus creating a DNS validation record is impossible.");
+ throw new InvalidOperationException($"The zone could not be found using the Cloudflare API, thus creating a DNS validation record is impossible. " +
+ $"Please note you need to use an API Token, not the Global API Key. The token needs the permissions Zone.Zone:Read and Zone.DNS:Edit. Regarding " +
+ $"Zone:Read it is important, that this token has access to all zones in your account (Zone Resources > Include > All zones) because we need to " +
+ $"list your zones. Read the docs carefully for instructions.");
}
var dns = ctx.Zone(zone).Dns;