--password overrides --genpass

Closes: #764143

Based on patch by Santiago Vila.
Add password length sanity check with fallback to default length
Raise default password length from 8 to 23