Command Central 10.5 | Using the Command Line Interface | Security Credentials Commands | sagcc exec security encrypt
 
sagcc exec security encrypt
The command encrypts user passwords for product configurations, using the environment or global shared secret configured in Command Central. You can copy the encrypted value from the command output and use it in place of the clear-text password, for example when you must specify this password in a template or properties file.
Syntax
*Command Central syntax:
sagcc exec security encrypt password=password           
[sharedSecret=sharedSecret] [options]
*Not supported on Platform Manager
Arguments and Options
Argument or Option
Description
password=password
Required. The user password to encrypt. Valid value is any string.
[sharedSecret=sharedSecret]
Optional. The shared secret configured for the Command Central environment. If you omit this parameter, the command uses the global shared secret, configured for Command Central. For more information about configuring a shared secret, see Configure Shared Secrets to Encrypt Instance and Component Passwords and sagcc add security credentials sharedsecret.
[options]
Optional. The command allows all options supported by the Command Line Interface. For a description of the options, see Common Options.
Usage Notes
When you create a new environment with templates, use the same shared secret in the new environment as the shared secret you specified when encrypting the password. For example, if you encrypted the password with the global shared secret, use the global shared secret for the target installation in the new environment. If you encrypted the password with a custom shared secret for the environment, use the same custom shared secret on the target installation.
Examples When Executing on Command Central
To encrypt the proxy configuration password "manage", using the global shared secret configured for Command Central:
sagcc exec security encrypt password=manage
To encrypt the db password "manage_123", using the "secret" shared secret, configured for the Command Central environment:
sagcc exec security encrypt password=manage_123 sharedsecret=secret