Key Provider Management
Key providers supply keys for VM encryption, disk encryption, and vTPM. ZSphere supports Standard Key Providers and Native Key Providers. A Standard Key Provider requires two-way trust with an external KMS. A Native Key Provider is provided by the platform and can be used without a third-party KMS.
When you create an encrypted resource or change the encryption state of a resource, the platform obtains keys from the default key provider. Before you use encryption, make sure the default key provider is connected and its key service is available. Back up the Native Key Provider before use so that you can restore the key service after a platform failure or rebuild.
Add a Standard Key Provider
You can add an external key server (KMS) to support various encryption capabilities of the system, thereby enhancing overall system security. The KMS must support the Key Management Interoperability Protocol (KMIP) 1.1 or later.
Before you begin
Make sure the platform is installed with a valid Advanced Edition license.Procedure
- In the navigation pane, select .
- Select the root node.
- On the root node details page, click Key Providers.
- On the Key Providers tab, click Add Key Provider.
-
In the Add Key Provider dialog, configure the following options:
Option Description Name Enter a name for the key provider.
Note: The name of each key provider serves as its identifier. Ensure the name is globally unique.Description Enter a brief description for the key provider. Type Select Standard Key Provider. IP Address/Domain Name Enter the IP address or domain name of the KMS. Port Enter the connection port of the KMS. The default port is 5696. Password Protection Some KMS systems allow you to isolate encryption keys used by different users or groups by specifying a username and password. Enable this option and enter the corresponding username and password. - After you confirm the configuration details are correct, click OK.
-
Click Trust.
After the key provider is added successfully, its status shows as "Connected | Not Trusted by KMS".
What to do next
- After you add a standard key provider, you must establish two-way trust for it to work properly. For more information, see Use KMS Certificate and Private Key to Make KMS Trust ZSphere, Use the New Certificate Signing Request (CSR) to Make KMS Trust ZSphere, and Make ZSphere Trust the KMS.
- Scenario practices: Use the Thales Key Provider, Use the HashiCorp Key Provider
Use KMS Certificate and Private Key to Make KMS Trust ZSphere
Some KMS vendors require you to upload the KMS server certificate and private key to ZSphere.
Procedure
- Navigate to the Key Providers page.
- Locate the standard key provider with which you want to establish trust, and click .
- In the Make KMS Trust the Platform dialog, select KMS Certificate and Private Key as the trust method.
- Click Next.
- Upload the certificate and private key files you received from the KMS, or paste the certificate and private key content into the text box.
- Click OK.
What to do next
To establish two-way trust, see Make ZSphere Trust the KMS.Use the New Certificate Signing Request (CSR) to Make KMS Trust ZSphere
Some KMS vendors require ZSphere to generate a Certificate Signing Request (CSR) and submit the CSR to the KMS. The KMS signs the CSR and returns a signed certificate. You must upload the signed certificate back to ZSphere to establish trust.
Procedure
- Navigate to the Key Providers page.
- Locate the standard key provider with which you want to establish trust, and click .
- In the Make KMS Trust the Platform dialog, select New Certificate Signing Request (CSR) as the trust method.
- Click Next.
-
Click Copy or Download to copy the entire content from the text box or save it as a file.
Use Generate New CSR only when you explicitly need to create a new CSR.
- Click OK.
- Log in to the KMS and submit the CSR according to the KMS requirements.
- After you receive the certificate signed by the KMS, click again.
- Paste the signed certificate into the text box, or click Upload File to upload it.
What to do next
To establish two-way trust, see Make ZSphere Trust the KMS.Make ZSphere Trust the KMS
If you skipped the step of trusting the KMS when you added the standard key provider, you must establish two-way trust after the KMS trusts ZSphere.
Procedure
- Navigate to the Key Providers page.
- Locate the standard key provider with which you want to establish trust, and click .
-
Select one of the following options from the Establish Trust menu.
- Make the Platform Trust KMS: In the Make the Platform Trust KMS dialog, click Trust.
- Upload KMS Certificate: In the Upload KMS Certificate dialog, upload a file or paste the certificate content into the text box. Then click OK.
Delete a Standard Key Provider
Before you begin
- When multiple key providers exist, the default key provider cannot be deleted. Set another key provider as the default first, and then perform the deletion.
- To preserve encrypted resources that depend on this key provider, perform a global Rekey operation before deletion. The operation uses a new KEK from the current default key provider to rewrap the DEKs of the encrypted resources.
Procedure
- In the navigation pane, select .
- Select the root node.
- On the root node details page, click Key Providers.
-
On the Key Providers tab, select the standard key provider you want to delete, and then click .
Note: After you delete a key provider, resources that depend on it, such as vTPM-enabled VMs, encrypted VMs, and encrypted disks, are locked and become unavailable. - Read the risk warning, enter the confirmation information, and click OK.
Use the Thales Key Provider
About this task
Procedure
-
Add the Thales key provider in ZSphere.
For detailed steps, see Add a Standard Key Provider.
-
Create a localhost user in Thales and add it to the admin group.
-
(Optional) Use the New Certificate Signing Request (CSR) method to make Thales trust ZSphere.
-
(Optional) Use the KMS certificate and private key method to make Thales trust ZSphere.
Use the HashiCorp Key Provider
About this task
Procedure
-
Add the HashiCorp key provider in ZSphere.
For detailed steps, see Add a Standard Key Provider.
-
(Optional) Use the KMS certificate and private key method to make HashiCorp trust ZSphere.
-
(Optional) Use the New Certificate Signing Request (CSR) method to make HashiCorp trust ZSphere.
Add a Native Key Provider
ZSphere provides a native key provider that allows you to enable encryption-related features without a third-party KMS.
Procedure
- In the navigation pane, select .
- Select the root node.
- On the root node details page, click Key Providers.
- On the Key Providers tab, click Add Key Provider.
-
In the Add Key Provider dialog, configure the following options:
Option Description Name Enter a name for the key provider.
Note: The name of each key provider serves as its identifier. Ensure the name is globally unique.Description Enter a brief description for the key provider. Type Select Native Key Provider. -
Click OK.
After the key provider is added successfully, its status shows as "Not Backed Up".
What to do next
After you add a native key provider, you must back it up before use. For more information, see Back Up the Native Key Provider.Back Up the Native Key Provider
The Native Key Provider is stored only in ZSphere. If ZSphere fails or must be rebuilt, its keys are lost and encrypted resources that depend on the provider become unavailable. Back up the Native Key Provider so that you can restore the key service and regain access to the encrypted resources after rebuilding ZSphere.
Procedure
- In the navigation pane, select .
- Select the root node.
- On the root node details page, click Key Providers.
-
On the Key Providers tab, select the native key provider you want to back up.
For key providers that are not yet backed up, the status shows as "Not Backed Up".
- Click .
-
In the Back Up Key Provider dialog, select the backup mode as needed.
Option Description Without Password Protection
Note: Without password protection, the configuration data and the virtual machines encrypted with this key provider face potential security risks.Password Protection Enter and confirm the password.
Note:
Store the password in a safe place. The platform cannot access or recover the password you set. Make sure this password is securely saved, as it will be required to restore the Native Key Provider configuration in case of disaster.
If you forget or lose the password:
- You cannot restore the key provider.
- You cannot access encrypted resources that depend on this key provider, such as vTPM-enabled VMs, encrypted VMs, and encrypted disks.
-
Click OK.
The backup file is downloaded through your browser. Save the backup file in a secure location.
Restore the Native Key Provider
Before you begin
- You have prepared the backup file of the native key provider.
- If you set password protection for the backup file when you backed up the key provider, prepare the password for the backup file.
- Ensure that no key provider with the same name exists on the platform.
Procedure
- In the navigation pane, select .
- Select the root node.
- On the root node details page, click Key Providers.
- On the Key Providers tab, click .
- In the Restore Key Provider dialog, upload the backup file.
- (Optional) If the backup file is password-protected, enter the password.
- Click Next.
- Confirm the information of the key provider to restore, and then click OK.
Delete the Native Key Provider
Before you begin
- If you want to keep the key provider for future use, back it up first.
- To preserve encrypted resources that depend on this key provider, perform a global Rekey operation before deletion. The operation uses a new KEK from the current default key provider to rewrap the DEKs of the encrypted resources.
Procedure
- In the navigation pane, select .
- Select the root node.
- On the root node details page, click Key Providers.
-
On the Key Providers tab, select the native key provider you want to delete, and then click .
Note:
- After deletion, resources that depend on this key provider, such as vTPM-enabled VMs, encrypted VMs, and encrypted disks, are locked and become unavailable.
- The key provider is permanently deleted from the platform and cannot be recovered. Proceed with caution.
- Read the risk warning, enter the confirmation information, and click OK.
Rekey
To meet requirements such as periodic key rotation, suspected key compromise, or security compliance, perform a shallow rekey on encrypted resources across the platform. This operation uses a new key encryption key (KEK) from the current default key provider to rewrap the data encryption keys (DEKs). It does not replace the DEKs or re-encrypt the actual workload data.
Before you begin
- Make sure that the current default key provider is connected and its key service is available.
- Make sure that the key providers and keys currently protecting encrypted resources across the platform are available.
Procedure
- In the navigation pane, select .
- Select the root node.
- On the root node details page, click Key Providers.
- On the Key Providers tab, click .
-
In the Rekey dialog, click OK.
The platform completes a shallow rekey by using a new KEK from the current default key provider to rewrap the DEKs of encrypted resources, including VMs, disks, disk snapshots, vTPMs, and encrypted VMs and disks in the Recycle Bin. The actual workload data is not re-encrypted.


















