# Generate a random string of 42 characters
random_token=$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | head -c 42)
I'm not sure how important it is for this value to be at least /exactly 42 characters, but I wanted to note that it is very easy for this command to result in a string shorter than 42 characters.
If the length of this token is important, upping the length of the string openssl returns (by more than just a few characters) would obviously suffice.
The
install-server.sh
specifies:I'm not sure how important it is for this value to be at least /exactly 42 characters, but I wanted to note that it is very easy for this command to result in a string shorter than 42 characters.
If the length of this token is important, upping the length of the string openssl returns (by more than just a few characters) would obviously suffice.