ambassador-auth-httpbasic
ambassador-auth-httpbasic copied to clipboard
"shasum -a 256" in PREPARED_PASSWORD statement for adding users does not work
The "shasum -a 256" in: export PREPARED_PASSWORD=$(printf "hunter2" | shasum -a 256 | head -c 64 | openssl base64 -A) did not work as "shasum" could not be found. No such utility or its variant taking "-a 256" as an argument could be found on Google.
Here is the command that worked in CentOS 7: export PREPARED_PASSWORD=$(printf "password" | sha256sum | head -c 64 | openssl base64 -A)