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:
- Open Terminal on the administrative Mac.
- Create a new master keychain file:
security create-keychain -p "YourAdminPassword" /tmp/FileVaultMaster.keychain - 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 - Open Keychain Access, unlock
FileVaultMaster.keychain, locate your newly generated certificate, and export the private key as a password-protected.p12archive. 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:
- In Keychain Access, delete the private key from
FileVaultMaster.keychain, leaving only the public certificate. - Lock the keychain and rename the file to:
FileVaultMaster.keychain - 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:
- Boot the Mac into macOS Recovery (hold the Power button on Apple Silicon Macs, or
Cmd + Ron Intel Macs). - Open Terminal from the Utilities menu.
- Insert a secure external USB drive containing your private master certificate.
- Execute
fdesetupto unlock the APFS volume:fdesetup unlock -keychain /Volumes/SecureUSB/FileVaultMaster.keychain - 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.