Description
When using Nginx Proxy Manager (NPM) to create Let’s Encrypt certificates via DNS-01 challenge, certificate issuance fails for CNAME-delegated subdomains, although the same setup works with certbot on another machine.
Environment
Nginx Proxy Manager: v2.12.6 and latest
Deployment: Docker (docker-compose)
Docker version: 28.3.3 (or latest)
Host system: Proxmox 8 and 9 in LXC (Debian 12)
Custom DNS in Docker: none configured
ACME CA: Let’s Encrypt (production and staging)
DNS Setup
Registered main domain, Subdomains delegated via CNAME records to:
DuckDNS or
deSEC DNS
DNS-01 challenge using TXT records
Expected Behavior
NPM should successfully resolve Let’s Encrypt ACME endpoints and complete the DNS-01 challenge for CNAME-delegated subdomains.
Actual Behavior
v2.12.6:
CommandError: Saving debug log to /tmp/letsencrypt-log/letsencrypt.log
Encountered exception during recovery: certbot.errors.PluginError: Could not find suitable domain in your account (did you create it?): _acme-challenge.sub.fqdn.de
Could not find suitable domain in your account (did you create it?): _acme-challenge.sub.fqdn.de
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/letsencrypt-log/letsencrypt.log or re-run Certbot with -v for more details.
Latest version: Generic “Internal Error”
Relevant Log Output
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='acme-v02.api.letsencrypt.org', port=443):
Max retries exceeded with url: /directory
(Caused by NameResolutionError:
Failed to resolve 'acme-v02.api.letsencrypt.org'
([Errno -3] Temporary failure in name resolution))
Certificate issuance fails before completion
Additional Notes
The same domain and DNS setup works flawlessly when using certbot directly (Debian, certbot 5.2, Python 3.11).
DNS-01 certificates succeed in NPM when:
Using DuckDNS domain directly
Using deSEC DNS directly for another Domain
The issue only occurs with CNAME-delegated subdomains for both DNS plugins. However, I was able to generate a *-Wildcard Cert for my domain CNAMEd to DuckDns a while ago, which can be renewed without hassel. It seems that I cannot create more new certificates anymore (I had only 2 so far).
I appreciate your help in this case, since it is driving me insane
Jan
Description
When using Nginx Proxy Manager (NPM) to create Let’s Encrypt certificates via DNS-01 challenge, certificate issuance fails for CNAME-delegated subdomains, although the same setup works with certbot on another machine.
Environment
Nginx Proxy Manager: v2.12.6 and latest
Deployment: Docker (docker-compose)
Docker version: 28.3.3 (or latest)
Host system: Proxmox 8 and 9 in LXC (Debian 12)
Custom DNS in Docker: none configured
ACME CA: Let’s Encrypt (production and staging)
DNS Setup
Registered main domain, Subdomains delegated via CNAME records to:
DuckDNS or
deSEC DNS
DNS-01 challenge using TXT records
Expected Behavior
NPM should successfully resolve Let’s Encrypt ACME endpoints and complete the DNS-01 challenge for CNAME-delegated subdomains.
Actual Behavior
v2.12.6:
CommandError: Saving debug log to /tmp/letsencrypt-log/letsencrypt.log
Encountered exception during recovery: certbot.errors.PluginError: Could not find suitable domain in your account (did you create it?): _acme-challenge.sub.fqdn.de
Could not find suitable domain in your account (did you create it?): _acme-challenge.sub.fqdn.de
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/letsencrypt-log/letsencrypt.log or re-run Certbot with -v for more details.
Latest version: Generic “Internal Error”
Relevant Log Output
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='acme-v02.api.letsencrypt.org', port=443):
Max retries exceeded with url: /directory
(Caused by NameResolutionError:
Failed to resolve 'acme-v02.api.letsencrypt.org'
([Errno -3] Temporary failure in name resolution))
Certificate issuance fails before completion
Additional Notes
The same domain and DNS setup works flawlessly when using certbot directly (Debian, certbot 5.2, Python 3.11).
DNS-01 certificates succeed in NPM when:
Using DuckDNS domain directly
Using deSEC DNS directly for another Domain
The issue only occurs with CNAME-delegated subdomains for both DNS plugins. However, I was able to generate a *-Wildcard Cert for my domain CNAMEd to DuckDns a while ago, which can be renewed without hassel. It seems that I cannot create more new certificates anymore (I had only 2 so far).
I appreciate your help in this case, since it is driving me insane
Jan