I am trying to download the commercially licensed version of Caddy but keep getting 401 Unauthorized response. This is the command I’m using, with my account ID and API key from the dashboard (URL removed because the forum won’t let me post with it in).
wget --http-user ACCOUNTID --http-passwd APIKEY ‘URL FROM CADDY SITE’
The output I get is:
HTTP request sent, awaiting response… 401 Unauthorized
Unknown authentication scheme.
Username/Password Authentication Failed.
I purchased the commercial license today. What am I doing wrong?
wget wouldn’t work so I ended up using curl:
curl --user accountid:apikey ‘https://caddyserver.com/download/linux/amd64?license=commercial&telemetry=off’ > caddy.tar
After putting the binary in the correct place I then had to give caddy permission to use lower numbered ports:
setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/caddy