mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 09:25:55 +03:00
[GH-ISSUE #2537] Namecheap Let's Encrypt Certifiacte - Unable to determine zone identifier #1773
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#1773
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Redwid on GitHub (Jan 12, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2537
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
I'm trying to set up Namecheap Let's Encrypt Certificate. Unfortunately with no success.
Getting that error message in UI:
Error: Command failed: certbot certonly --config "/etc/letsencrypt.ini" --cert-name "npm-38" --agree-tos --email "my-emai-is-herel@gmail.com" --domains "*.my-domain-is-here.com,my-domain-is-here.com" --authenticator dns-namecheap --dns-namecheap-credentials "/etc/letsencrypt/credentials/credentials-38" Saving debug log to /var/log/letsencrypt/letsencrypt.log Unable to determine zone identifier for my-domain-is-here.com using zone names: ['my-domain-is-here.com', 'com'] 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:402:12) at ChildProcess.emit (node:events:513:28) at maybeClose (node:internal/child_process:1100:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)Nginx Proxy Manager Version
2.9.19
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Successful certificate retrial
Screenshots
Operating System
Mac OS 12.5.1, Safari 15.6.1 ,Firefox 102.06esr
Additional context
I have certbot set up on my host mashie. It could successfully fetch certificates. I could import that in npm UI.
So certbot is working for me in manual mode with using TXT_RECORD _acme-challenge.
The certbot in container has a strange logs:
2023-01-12 15:15:31,571:DEBUG:certbot._internal.log:Exiting abnormally: Traceback (most recent call last): File "/usr/local/bin/certbot", line 8, in <module> sys.exit(main()) File "/usr/local/lib/python3.7/dist-packages/certbot/main.py", line 19, in main return internal_main.main(cli_args) File "/usr/local/lib/python3.7/dist-packages/certbot/_internal/main.py", line 1736, in main return config.func(config, plugins) File "/usr/local/lib/python3.7/dist-packages/certbot/_internal/main.py", line 1590, in certonly lineage = _get_and_save_cert(le_client, config, domains, certname, lineage) File "/usr/local/lib/python3.7/dist-packages/certbot/_internal/main.py", line 138, in _get_and_save_cert lineage = le_client.obtain_and_enroll_certificate(domains, certname) File "/usr/local/lib/python3.7/dist-packages/certbot/_internal/client.py", line 516, in obtain_and_enroll_certificate cert, chain, key, _ = self.obtain_certificate(domains) File "/usr/local/lib/python3.7/dist-packages/certbot/_internal/client.py", line 428, in obtain_certificate orderr = self._get_order_and_authorizations(csr.data, self.config.allow_subset_of_names) File "/usr/local/lib/python3.7/dist-packages/certbot/_internal/client.py", line 496, in _get_order_and_authorizations authzr = self.auth_handler.handle_authorizations(orderr, self.config, best_effort) File "/usr/local/lib/python3.7/dist-packages/certbot/_internal/auth_handler.py", line 88, in handle_authorizations resps = self.auth.perform(achalls) File "/usr/local/lib/python3.7/dist-packages/certbot/plugins/dns_common.py", line 76, in perform self._perform(domain, validation_domain_name, validation) File "/usr/local/lib/python3.7/dist-packages/certbot_dns_namecheap/dns_namecheap.py", line 62, in _perform self._get_namecheap_client().add_txt_record(domain, validation_name, validation) File "/usr/local/lib/python3.7/dist-packages/certbot/plugins/dns_common_lexicon.py", line 47, in add_txt_record self._find_domain_id(domain) File "/usr/local/lib/python3.7/dist-packages/certbot/plugins/dns_common_lexicon.py", line 110, in _find_domain_id .format(domain, domain_name_guesses)) certbot.errors.PluginError: Unable to determine zone identifier for my-domain-is-here.com using zone names: ['my-domain-is-here.com', 'com'] 2023-01-12 15:15:31,572:ERROR:certbot._internal.log:Unable to determine zone identifier for my-domain-is-here.com using zone names: ['my-domain-is-here.com', 'com']Please note domain was edited to my-domain-is-here term
@Kathou99 commented on GitHub (Jan 15, 2023):
I have the same error
@Kathou99 commented on GitHub (Jan 16, 2023):
@Redwid Please check if the port 80 is not bing used and is open to the internet (outside world)
@dmmackay commented on GitHub (Mar 19, 2023):
Have you added your IP to the Whitelisted IPs in Namecheap? This fixed it for me.
@hakunamatata97k commented on GitHub (May 1, 2023):
@dmmackay @Redwid how did you get the API key from Namecheap could you please tell me?
@Bovive commented on GitHub (Jun 6, 2023):
I know this is an old bug, but thanks for stating that. It also fixed it for me! If anyone needs the reference, here is the documentation from Namecheap on how to do it.
@jmaximusix commented on GitHub (Sep 1, 2023):
I have the same isssue, but just for clarification, does someone know whether you need namecheaps sandbox or production API Key? I'm assuming production, but I've tried both without success
[Edit]
It was my mistake, it did work for me, I accidentally used the sandboxed API twice. It does work with the normal API from namecheap, however you need at least 50$ in your balance to activate it, but I was able to deposit 50$, activate the API and then get it refunded through support (API access stays). Just be aware that whoever you entrust this API key with (in this case nginx proxy manager) is theoretically able to buy and sell domains in your name with that API as it inevitably has all these permissions
@github-actions[bot] commented on GitHub (Apr 20, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@github-actions[bot] commented on GitHub (Jun 13, 2025):
Issue was closed due to inactivity.