--- title: "Entrust nShield: Creating a key encryption key" slug: "oas-iglnx-entrust-nshield-creating-a-key-encryption-key-3-29" updated: 2026-08-06T13:20:50Z published: 2026-08-06T13:20:50Z canonical: "docs.onespan.com/oas-iglnx-entrust-nshield-creating-a-key-encryption-key-3-29" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.onespan.com/llms.txt > Use this file to discover all available pages before exploring further. # Entrust nShield: Creating a key encryption key Key encryption keys are used to encrypt and protect other cryptographic keys and can be generated with the [OneSpan Key Management Tool for Entrust nShield](/sec/docs/oas-iglnx-entrust-nshield-create-and-manage-cryptographic-keys-3-29). To create a key encryption key for Entrust nShield 5 1. Open a terminal window. 2. Start the OneSpan Key Management Tool for Entrust nShield, by default: /opt/vasco/ias/bin/hsm-ncipher/manager/n5/manager-5 3. Select an HSM ID to use for the key creation process. 4. Insert the administrator or operator card into a card slot. 5. Enter the ID of the slot in which the administrator/operator card is inserted. 6. Select option 14, i.e., (14) Generate a Key Encryption Key. 7. Follow the on-screen instructions provided by the Key Management Tool to complete the storage data key configuration. To create a key encryption key for Entrust nShield XC 1. Open a terminal window. 2. Start the OneSpan Key Management Tool for Entrust nShield, by default: /opt/vasco/ias/bin/hsm-ncipher/manager/xc/manager-xc 3. Select an HSM ID to use for the key creation process. 4. Insert the administrator or operator card into a card slot. 5. Enter the ID of the slot in which the administrator/operator card is inserted. 6. Select option 3, i.e., (3) Generate a Key Encryption Key. 7. Follow the on-screen instructions provided by the Key Management Tool to complete the storage data key configuration.