How to Configure and Manage FileVault Institutional Recovery Keys in macOS

Apple FileVault provides full-disk encryption (XTS-AES-128) protecting user data on Mac workstations against physical theft and unauthorized access. In enterprise environments, relying solely on individual Personal Recovery Keys (PRKs) creates operational vulnerabilities: if an employee forgets their password and misplaces their personal recovery key, their data is lost permanently. FileVault Institutional Recovery Keys (IRKs)—also known as Master Recovery Keys—allow enterprise IT administrators to unlock and recover any encrypted Mac across the fleet using a corporate X.509 certificate.

Personal vs. Institutional Recovery Keys

Understanding recovery key architecture is essential for enterprise compliance:

  • Personal Recovery Key (PRK): A unique 24-character alphanumeric key generated randomly per machine upon FileVault activation. Modern Mobile Device Management (MDM) solutions escrow this key automatically.
  • Institutional Recovery Key (IRK): A shared cryptographic certificate and private key managed by the enterprise. The public key is bundled into an institutional keychain deployed to client Macs; if a machine requires recovery, the IT department uses the matching private key to decrypt the drive.

Step 1: Generating the Master Keychain and Certificate

The institutional recovery key is generated using macOS Keychain utilities on a dedicated, secure IT management workstation:

  1. Open Terminal on the administrative Mac.
  2. Create a new master keychain file:
    security create-keychain -p "YourAdminPassword" /tmp/FileVaultMaster.keychain
  3. Generate an asymmetric key pair and self-signed X.509 certificate for FileVault encryption:
    security create-certificate -k /tmp/FileVaultMaster.keychain -p "FileVaultMasterKey" -r -s "Corporate FileVault Master Key" /tmp/FileVaultMaster.keychain
  4. Open Keychain Access, unlock FileVaultMaster.keychain, locate your newly generated certificate, and export the private key as a password-protected .p12 archive. Store this private key in a secure hardware security module (HSM) or corporate password vault.

Step 2: Preparing the Deployment Master Keychain

Client Macs must ONLY receive the public key portion; the private key must never be deployed to end-user workstations:

  1. In Keychain Access, delete the private key from FileVaultMaster.keychain, leaving only the public certificate.
  2. Lock the keychain and rename the file to:
    FileVaultMaster.keychain
  3. Place the sanitized public keychain into the target macOS system directory:
    /Library/Keychains/FileVaultMaster.keychain

Step 3: Enabling FileVault with Institutional Key Support

Deploy the configuration via MDM configuration profile or apply it locally using fdesetup:

# Enable FileVault utilizing both institutional and personal keys:
sudo fdesetup enable -keychain -outputplist > /tmp/fdesetup_output.plist

When FileVault encrypts the disk, it uses the public certificate inside FileVaultMaster.keychain to encrypt the Master Encryption Key, allowing authorized administrators to unlock the drive during recovery.

Unlocking an Encrypted Drive in Recovery Mode

If an employee leaves the company or forgets their credentials, IT administrators can recover the drive:

  1. Boot the Mac into macOS Recovery (hold the Power button on Apple Silicon Macs, or Cmd + R on Intel Macs).
  2. Open Terminal from the Utilities menu.
  3. Insert a secure external USB drive containing your private master certificate.
  4. Execute fdesetup to unlock the APFS volume:
    fdesetup unlock -keychain /Volumes/SecureUSB/FileVaultMaster.keychain
  5. Once authenticated, the volume mounts cleanly, allowing administrators to reset user accounts, back up essential project data, or re-provision the workstation.

Implementing Institutional Recovery Keys on macOS ensures continuous enterprise data governance while maintaining impenetrable full-disk cryptographic security.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.