ambassador-auth-httpbasic icon indicating copy to clipboard operation
ambassador-auth-httpbasic copied to clipboard

"shasum -a 256" in PREPARED_PASSWORD statement for adding users does not work

Open thearifismail opened this issue 7 years ago • 0 comments

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)

thearifismail avatar Sep 18 '18 14:09 thearifismail