1111kms_key_backup
1212Last update: 31.01.24
1313
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
1616
1717Usage:
1818 python kms_key_backup [arguments]
1919
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
2222
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.
2424
25- Parmeters /Arguments
25+ Parameters /Arguments
2626 --configfile filename
27- File with configuration parameters in jeson format
27+ File with configuration parameters in JSON format
2828
2929 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
3131 --source_ociprofile Source profile in oci config
3232 --source_region Source Region
3333 --source_compartment Source Compartment
3434 --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
3838 --wrapping_algorithm Key Export Wrapper Algorithm
3939 --exportonly Target vault is not used, only export the key and save it to a file.
4040 --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
4242 --target_region Target Region
4343 --target_compartment Target Compartment
4444 --target_vault Target Vault OCID
@@ -97,7 +97,7 @@ def load_config(config_file_name):
9797
9898#########################################################################
9999# parse_cmd_line
100- # Parses the commandline with argsparser and returns args Namespace
100+ # Parses the command line with argsparser and returns args Namespace
101101#########################################################################
102102def parse_cmd_line ():
103103 """ parse_cmd_line """
@@ -119,8 +119,8 @@ def parse_cmd_line():
119119
120120#########################################################################
121121# 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
124124# config file, if loaded
125125#########################################################################
126126def overwrite_conf (args ,config ):
0 commit comments