JessThrysoee / synology-letsencrypt

94 stars 31 forks source link

Issues w/ cloudflare #10

Closed danyhoron closed 11 months ago

danyhoron commented 11 months ago

I did setup the env file like this:

DOMAINS=(--domains "example.com" --domains "*.example.com")
EMAIL="danyhoron@yahoo.com"

DNS_PROVIDER="cloudflare"
export CF_API_EMAIL=email@address.com
export CF_API_KEY=my-secret-api-key

When I run synology-letsencrypt.sh I get:

acme: Preparing to solve DNS-01
acme: Cleaning DNS-01 challenge
acme: cleaning up failed: cloudflare: failed to find zone example.com.: ListZonesContext command failed: Invalid request headers (6003)

How can I troubleshoot what's happening?

Thank you.

danyhoron commented 11 months ago

Found the issue. I needed to use CF_API_KEY for the global key, and I was using API keys. I used CF_DNS_API_TOKEN and it worked.