ubccr / mokey

FreeIPA self-service account management portal
BSD 3-Clause "New" or "Revised" License
189 stars 45 forks source link

Added character constraint notes to *_key: lines #50

Closed gah242s closed 3 years ago

gah242s commented 4 years ago

In playing around with this, I could not get special characters to work, whether I used URL encoding or not. (Perhaps I wasn't doing it right?) Only numbers, upper case, and lower case characters would allow mokey to start.

aebruno commented 4 years ago

The enc_key should be just random bytes (in the form a hex string).

gah242s commented 4 years ago

Okay, fair enough. How about adding a one liner to create that?

cat /dev/urandom | tr -cd 'a-f0-9' | head -c 64