I'm reading "Reliably Deploying Rails Applications"
Regarding defining users to be set up by Chef, it says:
“Next we need to define users, inside data_bags/users copy the file deploy.json.example to deploy.json.
Generate a password for your deploy user with the command:
openssl passwd -1 "plaintextpassword"
And update deploy.json accordingly.”
My question is, what is the purpose of openssl passwd
? Is it just to generate a strong password? Would it be just as good if I typed in random characters?
And then, what is my 'actual' password? The plain text version, or the encrypted version? Do I need to save a copy of both to my password manager?
UPDATE:
Yes, I have read the manual. And yes, I understand that it generates an md5 encrypted version of my password. My question is more about why you'd use it, as opposed to using a very secure random string of characters that you make up yourself (or generate with a password generator).
One benefit I could think of is that you could type a rememberable password, and run it through openssl passwd -1 "plaintextpassword"
every time you need to enter it. So you'd kind of have the best of both worlds in terms of an easy to remember password, and a secure, random password. And running the rememberable/plain text version through ``openssl passwd -1` every time you need it would save you having to store the encrypted version of the password and type / paste that in every time you need to enter your password.
Is that the only benefit? If not, what are the others?