Closed s-u closed 2 years ago
@ndilieto thanks for the prompt response! I can confirm this fixes the issue on macOS where printf
isn an external utility so is not impacted by the shell choice (quick check suggests same is true on Linux and OpenWrt).
uacme.sh
uses/bin/sh
in the shebang which often forces shells such asbash
into compatibility mode which interpretsecho -n
as literal output and thus creates an invalid challenge:above example was produced with
and the
echo
behavior can be checked withThe specs say that servers SHOULD accept challenges with trailing whitespace so the easiest fix is to remove
-n
. A more advanced fix would be to first check that-n
is safe and not use it if it's not.