Skip to main content

How to Refresh the FileVault Recovery Key on macOS

Swif keeps each Mac's FileVault recovery key, so your IT team can unlock the Mac if its user forgets their password. If a Mac's key is missing, or out of date, in Swif, click Refresh to get it.


​

Requirements

Requirement

Details

Enrollment

A company-owned Mac, enrolled in Swif. BYOD Macs aren't supported. See BYOD Macs.

FileVault

Turned on

Policy

The Apple FileVault Policy, with Recovery Key Escrow on

Swif's administrator account

Needed if FileVault was turned on before the FileVault policy was installed. See Two ways Swif gets the key.


​

Two ways Swif gets the key

FileVault was turned on

How Swif gets the key

When you'll see it

After the FileVault policy was installed

macOS sends the key to Swif when it creates it

Right away. Nothing to do.

Before the FileVault policy was installed, by the user, another MDM, or before Swif managed the Mac

macOS doesn't share an existing key, so Swif replaces it with a new one, in a few steps

Usually within minutes. Sometimes a day or more. See How Swif replaces the key.

​

A new key replaces the old one, which stops working. The user's Mac password doesn't change.


​

Refresh the recovery key

  1. In Swif, go to Devices > Device Inventory, and open the Mac.

  2. Go to the Security tab.

  3. In Encryption, click Refresh, next to Recovery key.

​

Swif starts getting the key in the background. A success message means the request was accepted, not that the key is already in Swif. It appears once the process finishes.


​

How Swif replaces the key

If FileVault was turned on before the FileVault policy was installed:

  1. Swif checks with Apple whether the Mac has sent its key. If it has, Swif stores it, and you're done.

  2. If not, the Swif agent replaces the key, using Swif's administrator account on the Mac. The user doesn't need to do anything.

  3. If that doesn't work, for example because Swif's administrator account is locked, the Swif desktop app asks the user for their Mac password, with FileVault Recovery Key Required. When they enter it, the key is replaced.

  4. If the user closes the prompt, or the steps above fail, Swif tries again every 24 hours, from step 2.

​

Swif retries only once a day, so users aren't asked too often.


​

When you'll see the key

Situation

When

FileVault was turned on by the policy

Right away

Swif's agent replaced the key

Within a few minutes of clicking Refresh

The user entered their password in the prompt

As soon as they enter it

The user closed the prompt

At the next try, within 24 hours

Swif's administrator account was locked, and the user closed the prompt

Within 24 to 48 hours, while Swif repairs its administrator account, and tries again


​

Why Swif's administrator account may be locked

Swif regularly checks that its administrator account's password on the Mac matches the one it stores. Sometimes, macOS treats these checks as a password-guessing attack, and locks the account.

​

Swif repairs this on its own: it tries to unlock the account, and if it can't, it deletes and recreates it. Then the next daily try starts again from the beginning. Refresh doesn't speed this up.


​

BYOD Macs

Swif can't get, or refresh, FileVault recovery keys on BYOD Macs. Apple doesn't give MDMs permission to store recovery keys for personally owned Macs, so the FileVault policy doesn't apply to them.

​

To store a Mac's key in Swif, enroll it as company-owned.


​

Troubleshooting

​

The recovery key is still missing after clicking Refresh

Cause

What to do

FileVault was turned on before the FileVault policy was installed

This is expected. Swif replaces the key in a few steps, which can take a day or more.

Swif's administrator account is locked

Swif repairs it on its own. Wait for the next daily try.

The user closed the password prompt

Ask them to enter their Mac password when the prompt opens again, within 24 hours

The Mac is enrolled as BYOD

Swif can't store its key. Enroll it as company-owned.

​

The desktop app keeps asking the user for their password

Swif's agent can't replace the key itself, so it asks the user each day. Once they enter their correct Mac password, the prompts stop.

​

Refresh succeeded, but the key doesn't appear

Getting the key happens in the background. Wait for the process to finish. If FileVault was turned on before the FileVault policy was installed, it can take a day or more.


​

FAQ

​

Does refreshing the key change the user's password?

No. Only the recovery key changes. The user's Mac password, which also unlocks FileVault, stays the same.

​

Can I refresh the key remotely?

Yes. Refresh works from Swif. If Swif's agent can't replace the key, the user needs to enter their password in the desktop app.

​

Why can't Swif unlock its administrator account, and refresh the key straight away?

They're separate processes. Swif repairs its administrator account on its own schedule, then tries again to get the key.


​

Related resources

Did this answer your question?