Encrypting Passwords
You can encrypt the passwords used by the system to connect to its components, and provide the encrypted passwords during secret creation.
Before you begin
Use the OpenSSL
tool to encrypt the
passwords. If you do not have OpenSSL
installed, you can download
and install it by running the apt-get install -y openssl
or
yum
command.
About this task
You can encrypt the following passwords in the
app-secrets.yaml file:
- SYSTEM_PASSPHRASE
- DB_PASSWORD
- JMS_PASSWORD
- JMS_KEYSTORE_PASSWORD
- JMS_TRUSTSTORE_PASSWORD
- LIBERTY_KEYSTORE_PASSWORD
Important: The default key that is used for
encryption is
4254514F6C6C2B594650496373422B764D66584E54673D3D
.
You can use your own key for the encryption. If you do not provide a key in
values.yaml, the default key is used to decrypt the
passwords.Procedure
To encrypt the password and use it as a secret, complete the following steps: