Exporting vSphere Native Key Provider (NKP) Prior to vCenter Server Migration or Decommissioning
search cancel

Exporting vSphere Native Key Provider (NKP) Prior to vCenter Server Migration or Decommissioning

book

Article ID: 460724

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

This article explains the mandatory requirement to export Native Key Provider (NKP) keys before decommissioning or re-deploying a vCenter Server instance.

Environment

  • vCenter Server with Native Key Provider enabled
  • VM Encryption
  • vSAN Data-at-Rest Encryption

Resolution

The vSphere Native Key Provider utilizes the vCenter Server database to store cryptographic information. If the vCenter appliance is decommissioned or replaced without exporting the NKP keys, those keys are permanently unrecoverable unless a valid vCenter file-based backup (VCSA Backup) exists.

  1. Prerequisite: Before any vCenter upgrade or migration, always export the Native Key Provider.
    • Navigate to Configure > Key Providers > Select Provider > Back Up.
    • During this step, you will need to create a backup password. If you lose this password, the backup file is useless and the keys are unrecoverable.
  2. Post-Upgrade/Migration: Restore the saved NKP key file into the new vCenter Server instance.
  3. If the old vCenter is powered off: If the appliance was not backed up and the key was not exported, the vTMP-encrypted virtual machines will remain in a locked state if the original key is not available. Keys are unrecoverable if the appliance is deleted, irrecoverably corrupted, or the database is destroyed without a valid backup.

 

Additional Information

While exporting the NKP via the vSphere Client is the safest targeted method, a native vCenter Server File-Based Backup (done via the VAMI port 5480) also captures the NKP keys. If a user destroys a vCenter, they can recover the NKP by deploying a new vCenter using that VAMI backup.