-
Notifications
You must be signed in to change notification settings - Fork 36
dx_encrypt
Marcin Przepiorowski edited this page Nov 8, 2016
·
4 revisions
dx_encrypt.pl -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
-
-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" : "#dde3243453531432f015dwadw301fe7aba75",
"ip_address" : "delphix02"
}]
}
Delphix