mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #3778] Cannot get new SSL certificates on Debian 12 with rootless Docker #2486
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#2486
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 @TailoredITRob on GitHub (May 27, 2024).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3778
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
I have a vanilla installation of Debian 12 with rootless Docker and NPM installed. (I also have a container running Portainer.) When I try to enable SSL and add a new certificate, it fails. When I attempt to create a new Let'sEncrypt certificate from the SSL page, it also fails. Additionally, the Server Reachability test also fails with the following error.
Of course, NPM is running and I'm accessing NPM through the domain I'm attempting to pull an SSL cert for.
Inspecting the JS console, I find a request going out to
http://my.domain.com/api/nginx/certificates/test-http?domains=["my.domain.com"]is failing with the following error.Attempting to request a new certificate results in a 503 error from
http://my.domain.com/api/nginx/certificateswith the following message.The indicated log file is never created.
Nginx Proxy Manager Version
2.11.2
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A reachability test should be completed or a new Let'sEncrypt certificate issued without errors.
Operating System
Debian GNU/Linux 12 (bookworm)
Additional context
Possibly related to #2439, #2593, and #2713.
@TailoredITRob commented on GitHub (Jul 8, 2024):
I finally have this resolved.
I needed to apply the fix from #3121 as shown below.
Create a
force-ssl.conffile in the same directory asdocker-compose.ymland then add it to your container.force-ssl.conf
docker-compose.yml
This should resolve the issue until PR #3121 is merged. With this I was getting back Let's Encrypt responses, but they were being denied. After inspecting the logs I realized it was failing a CAA check. (I've used other certificate providers for other subdomains. CAA records limit which CAs may issue certificates for a domain. You may need to add a CAA record for Let's Encrypt.
You can learn more about CAA records here.