How do i create and encrypted password with openssl?
-
Man page for openssl: http://bit.ly/2zjZAuo
Sometime you need to generate a password for use with configuration management tools like ansible, chef, etc. You set variable as secure encrypted variable.
Note: This is md5 which is not secure as sha256, sha512. See other articles on this.
http://bit.ly/2x6dxeNWith openssl you can generate a password like this:
openssl passwd -1 Password: Verifying - Password: $1$c5TFWEbF$i4tWjzviWrJKqICO/SWk50
You would store this $1$c5TFWEbF$i4tWjzviWrJKqICO/SWk50 in your variable.
© Lightnetics 2024