},
# openssl s_client -connect <host>:8007 2>&1 |openssl x509 -fingerprint -sha256
fingerprint => get_standard_option('fingerprint-sha256'),
- encryption_key => {
+ 'encryption-key' => {
description => "Encryption key.",
type => 'string',
},
disable => { optional => 1},
content => { optional => 1},
username => { optional => 1 },
- password => { optional => 1},
- encryption_key => { optional => 1 },
+ password => { optional => 1 },
+ 'encryption-key' => { optional => 1 },
maxfiles => { optional => 1 },
fingerprint => { optional => 1 },
};
pbs_delete_password($scfg, $storeid);
}
- if (defined(my $encryption_key = $param{encryption_key})) {
+ if (defined(my $encryption_key = $param{'encryption-key'})) {
pbs_set_encryption_key($scfg, $storeid, $encryption_key);
} else {
pbs_delete_encryption_key($scfg, $storeid);
}
}
- if (exists($param{encryption_key})) {
- if (defined(my $encryption_key = delete($param{encryption_key}))) {
+ if (exists($param{'encryption-key'})) {
+ if (defined(my $encryption_key = delete($param{'encryption-key'}))) {
pbs_set_encryption_key($scfg, $storeid, $encryption_key);
} else {
pbs_delete_encryption_key($scfg, $storeid);