Skip to content

Rotating or Generating New Keys

Elliot Jordan edited this page Aug 10, 2023 · 8 revisions

Rotating or Generating new recovery keys.

Crypt can easily rotate or generate new recovery keys of already encrypted machines. To do so you need to first make sure that Crypt is properly installed, and make sure all three of the following are set to the following values. For more info on these keys, they are located on the Preferences page. All that is left to do is restart and log in. If you are experiencing issues, please check the authorized plugin logs for clues before asking for help.

<key>RemovePlist</key>
<false/>
<key>RotateUsedKey</key>
<true/>
<key>ValidateKey</key>
<true/>

Note

The above will only generate a new key during login if there is not already a key at the location set by the OutputPath preference.

New GenerateNewKey Preference

As of version 3.1.0 you can now rotate/generate a new key during login by setting the GenerateNewKey Preference to a boolean of True, it will be set back to False after a successful rotation, NOTE: Using this method via a Profile will be ignored as you probably don't want to Rotate the key every time someone logs in or reboots.

$ sudo defaults write /Library/Preferences/com.grahamgilbert.crypt GenerateNewKey -bool True

If you're looking to bulk-generate new FileVault keys for your Mac fleet but don't use Crypt or Crypt server, you may want to check out Escrow Buddy which also offers this feature.