-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
Checklist
- Have you pulled and found the error with
jc21/nginx-proxy-manager:latest
docker image?- Yes
- Are you sure you're not using someone else's docker image?
- Yes
- Have you searched for similar issues (both open and closed)?
- Yes
Describe the bug
i have a fresh NPM image running and tried to generate SSL certificate for my ___domain
i tried both http/dns challenges
for http challenge i get this error:
Communication with the API failed, is NPM running correctly?
or this one:
example.example.com: There is no server available at this ___domain. Please make sure your ___domain exists and points to the IP where your NPM instance is running and if necessary port 80 is forwarded in your router.
for the second error i made sure my DNS record is configured as DNS only and not proxied on cloudflare and i have both port 80 and 443 forwarded on my WAN router
if i opted for DNS challenge i get this error
Error: Command failed: certbot certonly --config "/etc/letsencrypt.ini" --cert-name "npm-3" --agree-tos --email "[email protected]" --domains "example.com" --authenticator dns-cloudflare --dns-cloudflare-credentials "/etc/letsencrypt/credentials/credentials-3" --dns-cloudflare-propagation-seconds 240
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Encountered CloudFlareAPIError adding TXT record: 10000 Authentication error
Error communicating with the Cloudflare API: Authentication error
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
at ChildProcess.exithandler (node:child_process:397:12)
at ChildProcess.emit (node:events:390:28)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
although the API key is working fine
curl -X GET "https://api.cloudflare.com/client/v4/user/tokens/verify" \
-H "Authorization: Bearer xxxx" \
-H "Content-Type:application/json"
{"result":{"id":"96ec8dc212843213fb16d363732e6b34","status":"active"},"success":true,"errors":[],"messages":[{"code":10000,"message":"This API Token is valid and active","type":null}]}
Nginx Proxy Manager Version
v2.9.14
i tried the latest as well but i had the same issue and i saw a post here recommending downgrading helped but unfortunately it didn't help me ref. #1862
To Reproduce
Steps to reproduce the behavior:
- Go to the tab "SSL Certificates"
- Click on "Add SSL Certificate"
- Enter the domains "*.example.com, example.com"
- Select "Use DNS Challenge", Cloudflare, and set API Key
- Set Propagation Seconds (450 Seconds) (Optional)
Expected behavior
wildcard SSL certificate to be created
Operating System
ubuntu server 21.10