Skip to content

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

@thearifismail

Description

@thearifismail

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions