11
11
kms_key_backup
12
12
Last update: 31.01.24
13
13
14
- Export a OCI Vault Key and eiether save it to file or copy the key to a different vault
15
- It only export or copy software keys. HSM keys are not exportable
14
+ Export an OCI Vault Key and either save it to a file or copy the key to a different vault
15
+ It only exports or copies software keys. HSM keys are not exportable
16
16
17
17
Usage:
18
18
python kms_key_backup [arguments]
19
19
20
- Parameters can be declared in a jsonfile or as arguments to the commandline , or both.
21
- Any comandline arguments overwrites json config file values
20
+ Parameters can be declared in a JSON file as arguments to the command line , or both.
21
+ Any command line arguments overwrites JSON config file values
22
22
23
- The script is run in two modi, eiter key export only or backup to a 2. vault.
23
+ The script is run in two modes, either key export only or backup to a 2. vault.
24
24
25
- Parmeters /Arguments
25
+ Parameters /Arguments
26
26
--configfile filename
27
- File with configuration parameters in jeson format
27
+ File with configuration parameters in JSON format
28
28
29
29
Common parameters for both modi
30
- --ociconfig path to OCI configuration file, assume both soruce and target use the same OCI config
30
+ --ociconfig path to OCI configuration file, assume both source and target use the same OCI config
31
31
--source_ociprofile Source profile in oci config
32
32
--source_region Source Region
33
33
--source_compartment Source Compartment
34
34
--source_vault Source vault OCI
35
- --source_keyname Source Key Name, if search for key
36
- --source_key_ocid Source key OCID if search for OCID
37
- --source_key_version OCID of a spesific key version, if not set pick newest
35
+ --source_keyname Source Key Name, if searching for key
36
+ --source_key_ocid Source key OCID if searching for OCID
37
+ --source_key_version OCID of a specific key version, if not set pick the newest
38
38
--wrapping_algorithm Key Export Wrapper Algorithm
39
39
--exportonly Target vault is not used, only export the key and save it to a file.
40
40
--outfile File with encrypted key, used for exportonly option. If not set, print to stdout
41
- --wrapping_pubkey_file For exportponly option, file with openssl generated key that matches the wrapping algoritm
41
+ --wrapping_pubkey_file For exportponly option, a file with openssl generated key that matches the wrapping algorithm
42
42
--target_region Target Region
43
43
--target_compartment Target Compartment
44
44
--target_vault Target Vault OCID
@@ -97,7 +97,7 @@ def load_config(config_file_name):
97
97
98
98
#########################################################################
99
99
# parse_cmd_line
100
- # Parses the commandline with argsparser and returns args Namespace
100
+ # Parses the command line with argsparser and returns args Namespace
101
101
#########################################################################
102
102
def parse_cmd_line ():
103
103
""" parse_cmd_line """
@@ -119,8 +119,8 @@ def parse_cmd_line():
119
119
120
120
#########################################################################
121
121
# overwrite_config
122
- # Overwrite configfile settings from commandline
123
- # Any commandline settings will overwrite any setings inherited from the
122
+ # Overwrite configfile settings from command line
123
+ # Any commandline settings will overwrite any settings inherited from the
124
124
# config file, if loaded
125
125
#########################################################################
126
126
def overwrite_conf (args ,config ):
0 commit comments