-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
acme: wrong permssions for .well-known/acme-challenge/* / 403 #106603
Labels
0.kind: bug
Something is broken
6.topic: nixos
Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Comments
veprbl
added
the
6.topic: nixos
Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
label
Dec 10, 2020
You have two options to resolve this:
|
|
Sorry, reading over this again I understand what you're really highlighting here. I will change the UMask to |
10 tasks
m1cr0man
added a commit
to m1cr0man/nixpkgs
that referenced
this issue
Dec 28, 2020
Closes NixOS#106603 Some webservers (lighttpd) require that the files they are serving are world readable. We do our own chmods in the scripts anyway, and lego has sensible permissions on its output files, so this change is safe enough.
m1cr0man
added a commit
to m1cr0man/nixpkgs
that referenced
this issue
Feb 6, 2021
Closes NixOS#106603 Some webservers (lighttpd) require that the files they are serving are world readable. We do our own chmods in the scripts anyway, and lego has sensible permissions on its output files, so this change is safe enough. (cherry picked from commit f670e1d)
This was referenced May 16, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
0.kind: bug
Something is broken
6.topic: nixos
Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Describe the bug
Since 20.09, renewing Let's Encrypt-certificates fail with lighttpd.
The problem is, that:
.well-known/acme-challenge/
are not world-readable anymore (This is the bug.)log message:
acme: error: 403 :: urn:ietf:params:acme:error:unauthorized :: Invalid response from https://DOMAIN/.well-known/acme-challenge/...
This is probably caused by #91121, line
UMask = 0027;
, this should probably beUMask = 0022;
Workaround:
while true; do ll */.well-known/acme-challenge/; chmod a+r */.well-known/acme-challenge/*; sleep 0.05; done
systemctl restart acme-DOMAIN.service
(Note: This problem is indpendent from #101445)
To Reproduce
Steps to reproduce the behavior:
Notify maintainers
@m1cr0man @flokli
The text was updated successfully, but these errors were encountered: