-
Notifications
You must be signed in to change notification settings - Fork 34
dx_encrypt
Marcin Przepiorowski edited this page Mar 21, 2019
·
4 revisions
dx_encrypt -plainconfig|p non_encrypted_config -encryptedconfig|e encrypted_config [-help] [-version]
Encrypt config file. Put a plain password with plain configuration file and add parameter encrypted set to true. Only entries with parameter encrypted set to "true" will be encrypted. Encrypted_config_file is encrypted configuration file which should be distributed with dxtoolkit.
ex. dx_encrypt -plainconfig dxtools.conf.plain -encryptedconfig dxtools.conf
- -plainconfig|p file Non encrypted config file
- -encryptedconfig|e file Encrypted config file
- -shared Encryption is done without hostname - config file can be shared between different hosts
- -help Print this screen
- -debug Turn on debugging
Encrypt password in dxtools.conf.plain file and generate encrypted file dxtools.conf.enc
$ cat dxtools.conf.plain
{
"data" : [ {
"protocol" : "http",
"hostname" : "Landshark2",
"default" : "true",
"port" : "80",
"username" : "delphix_admin",
"encrypted" : "true",
"password" : "password",
"ip_address" : "delphix02"
} ]
}
dx_encrypt -plainconfig dxtools.conf.plain -encryptedconfig dxtools.conf.enc
New config file dxtools.conf.enc created.
$ cat dxtools.conf
{
"data" : [ {
"protocol" : "http",
"hostname" : "Landshark2",
"default" : "true",
"port" : "80",
"username" : "delphix_admin",
"encrypted" : "true",
"password" : "818bd243bee573105b258c36489f351b806ee890eeba928ddb4d704f6e797bb6c1ac057e84c851f2",
"ip_address" : "delphix02"
}]
}
Encrypt password in dxtools.conf.plain file and generate encrypted file dxtools.conf.enc for shared config file
dx_encrypt -plainconfig dxtools.conf.plain -encryptedconfig dxtools.conf -shared
New config file dxtools.conf created.
Delphix