Initial configuration script (setup_kms.py)
The initial configuration script is used to build an encryption environment with a KMS.
The initial configuration script performs the following actions:
- Log in to the ESM.
- Upload the client certificate to ESM.
- Upload the root certificate to the ESM.
- Get a list of certificates.
- Register a key management server.
- Enable encryption preferences.
- Log out of the ESM.
Initialization script (init_kms.py)
The initialization script is used to initialize the encryption settings, for example, when an error occurs when the initial configuration script is executed.
The initialization script performs the following actions:
- Log in to the ESM.
- Get the status of the encryption preferences.
- Disable encryption preferences.
- Delete the KMS.
- Get a list of certificates.
- Remove root and client certificates.
- Log out of the ESM.
Block storage script (block_storage_api.py)
This file defines a function to generate a request line as a BlockStorageAPI class. Place this file in the same folder as setup_kms.py and init_kms.py.
Storage system information script (storage_param.py)
This is a file that defines information about the storage system. Place it in the same folder as setup_kms.py and init_kms.py.