mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-27 10:25:52 +03:00
[GH-ISSUE #628] Letsencrypt Cert can't create Wildcard-Cert using Cloudflare DNS #530
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#530
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 @typoworx-de on GitHub (Oct 5, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/628
Checklist
jc21/nginx-proxy-manager:latestdocker image?Yes
Yes
Yes
Describe the bug
Tried to create wildcard-domain certificate using Letsencrypt + Cloudflare. This worked great for "regular" (non-wildcard) domains, but fails for something like "*.host.my-hosting-service.net".
I only get js-alert saying "Internal Error". Please also note my other ticket #627 that more verbose error-dialogs (modal dialogs would be great) will be a great improvement to figure out what the reason is for some issues.
v2.5.0
To Reproduce
Steps to reproduce the behavior:
Go to SSL and try to create a Letsencrypt + Cloudflare verification cert with wildcard in it. Don't forget to enter Cloudflare DNS API Token. My token is approved to work with regular domains.
Expected behavior
Rolling out the requested cert or telling me a more verbose error-message what's wrong behind.
Screenshots

If applicable, add screenshots to help explain your problem.
Operating System
Docker running on Ubuntu 20
Additional context
@dugaa95 commented on GitHub (Oct 8, 2020):
I have same Problem
@chaptergy commented on GitHub (Nov 6, 2020):
This has most likely changed since #635, does this issue still persist or can it be closed?
@chris1668 commented on GitHub (Dec 19, 2020):
An internal error still persists, I just tried to use Cloudflare DNS Challenge and it seems the Docker Image from JLesage does not have the Cloudflare-DNS module installed, so after running pip3 install certbot-dns-cloudflare==1.8.0
matching the version from the internal error message has now lead me to this Command Failed Error with no obvious reason standing out to me.
`Error: Command failed: /usr/bin/certbot certonly --non-interactive --cert-name "npm-15" --agree-tos --email "" --domains "*.example.com" --authenticator dns-cloudflare --dns-cloudflare-credentials "/etc/letsencrypt/credentials/credentials-15"
Traceback (most recent call last):
File "/usr/bin/certbot", line 11, in
load_entry_point('certbot==1.4.0', 'console_scripts', 'certbot')()
File "/usr/lib/python3.8/site-packages/certbot/main.py", line 15, in main
return internal_main.main(cli_args)
File "/usr/lib/python3.8/site-packages/certbot/_internal/main.py", line 1315, in main
log.pre_arg_parse_setup()
File "/usr/lib/python3.8/site-packages/certbot/_internal/log.py", line 55, in pre_arg_parse_setup
temp_handler = TempHandler()
File "/usr/lib/python3.8/site-packages/certbot/_internal/log.py", line 243, in init
stream = util.safe_open(self.path, mode='w', chmod=0o600)
File "/usr/lib/python3.8/site-packages/certbot/util.py", line 197, in safe_open
fd = filesystem.open(path, os.O_CREAT | os.O_EXCL | os.O_RDWR, *open_args)
File "/usr/lib/python3.8/site-packages/certbot/compat/filesystem.py", line 149, in open
return os.open(file_path, flags, mode)
PermissionError: [Errno 13] Permission denied: '/tmp/tmpyp2bcu3c/log'
at ChildProcess.exithandler (child_process.js:303:12)

at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)`
@chaptergy commented on GitHub (Dec 19, 2020):
How did you install the proxy manager? It seems certbot wants to write to a log file inside the
/tmpdirectory, been t has no permission to do so.@chris1668 commented on GitHub (Dec 19, 2020):
Its a Docker Container in Unraid with all the default file permissions and UID/GID, I can see the File permissions for the tmp directory is
d--------- 1 app users 0 Dec 19 11:38 tmpamks2ml4not sure why that temp folder it generates for the log has no write permissions as other app directories in /tmp do have write ie.d-w------- 1 app users 0 Dec 19 11:38 pip-req-tracker-0obopsdc@chaptergy commented on GitHub (Dec 20, 2020):
Unfortunately I am not able to reproduce your issue, not with the official docker image nor with the JLesage docker image. Could you provide the docker-compose file you use?
@chaptergy commented on GitHub (May 10, 2021):
I will now close this issue as there have not been any updates.