We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a16ccf4 + 22dfedf commit be35b55Copy full SHA for be35b55
acme.sh
@@ -5005,9 +5005,11 @@ $_authorizations_map"
5005
5006
_debug "Writing token: $token to $wellknown_path/$token"
5007
5008
- mkdir -p "$wellknown_path"
5009
-
5010
- if ! printf "%s" "$keyauthorization" >"$wellknown_path/$token"; then
+ # Ensure .well-known is visible to web server user/group
+ # https://github.com/Neilpang/acme.sh/pull/32
+ if ! (umask ugo+rx &&
5011
+ mkdir -p "$wellknown_path" &&
5012
+ printf "%s" "$keyauthorization" >"$wellknown_path/$token"); then
5013
_err "$d: Cannot write token to file: $wellknown_path/$token"
5014
_clearupwebbroot "$_currentRoot" "$removelevel" "$token"
5015
_clearup
0 commit comments