Secure Boot Remediation

This guide describes the full procedure for remediating Secure Boot on a virtual machine, required due to upcoming Microsoft certificate changes. The process consists of two automated day-2 operations with a mandatory manual step in between that must be performed by the customer.

This is an information message

Important

The three steps must be executed in order. Do not skip or rearrange them.


Overview

StepTypeAction
1Automated (Day-2 Operation)Secure Boot Preparation
2Manual (Customer)Platform Key Enrollment in BIOS/EFI
3Automated (Day-2 Operation)Secure Boot Finalization

Step 1: Secure Boot Preparation (Automated Operation)

This day-2 action prepares your virtual machine for the Secure Boot certificate update required due to upcoming Microsoft changes.

The process will automatically perform the following steps:

  • Configure VM boot settings to allow Secure Boot updates
  • Attach a temporary disk containing the required Microsoft Platform Key (PK)
  • Create a safety snapshot for rollback purposes
  • Perform a controlled reboot of the virtual machine
This is an information message

Note

  • No changes are made inside the operating system during this step.
  • A snapshot is created to allow rollback in case of issues.
  • A maintenance window and console access are required for the next step.

Once completed, the VM is ready for manual Secure Boot key enrollment. Proceed to Step 2.


Step 2: Secure Boot Platform Key Enrollment (Manual Steps)

After the preparation is complete, the customer must manually enroll the Platform Key in the VM's BIOS/EFI.

This is an information message

Important

This step requires console access and must be performed during a maintenance window.

Follow the steps below carefully.

Step 1: Open Virtual Machine Console

  • Open the VM Console via the Portal
  • Keep the console open for BIOS/EFI access

Step 2: Power On the Virtual Machine

  • Start the VM while the console is open
  • Press F2 to enter BIOS/EFI setup

Step 3: Enroll Microsoft Platform Key

Navigate in BIOS:

  1. Enter Setup
  2. Secure Boot Configuration
  3. PK Options
  4. Enroll PK
  5. Enroll KEK

Enroll PK:

  • Select the disk labeled KEYUPDATE
  • Choose: WindowsOEMDevicesPK.der
  • Confirm and commit changes

Enroll KEK:

  • Select the disk labeled KEYUPDATE
  • Choose: microsoft corporation kek 2k ca 2023.der
  • Confirm and commit changes
  • Exit BIOS
This is an information message

Note

Ensure the correct files are selected. Incorrect selection may result in Secure Boot misconfiguration.

Step 4: Reboot the Virtual Machine

  • The VM should reboot automatically after exiting BIOS
  • If not, reboot it manually via the Portal

Step 5: Operating System Boot

  • Wait until the operating system has fully started

Step 6: Verify Platform Key

Linux:

mokutil --pk

Windows:

Execute the provided PowerShell verification script. The script will:

  • Check if Microsoft Secure Boot certificates (2023) are present
  • Verify required Windows updates
  • Support certificate migration (if needed)

Step 7: Sanity Reboot

Perform a full power cycle to ensure Secure Boot is functioning correctly:

  • Power OFF the VM
  • Power ON the VM
This is an information message

Important

This sanity reboot is required before proceeding to Step 3.

Once all manual steps are completed successfully, proceed to Step 3.


Step 3: Secure Boot Finalization (Automated Operation)

This day-2 action completes the Secure Boot remediation after the Platform Key (PK) has been successfully enrolled.

The process will automatically perform the following steps:

  • Detach the temporary disk used for Platform Key installation
  • Remove temporary Secure Boot compatibility settings
  • Restore normal VM boot configuration
  • Delete previously created safety snapshots
This is an information message

Important

This step should only be executed after the manual BIOS/EFI key enrollment in Step 2 is completed successfully. No changes are made inside the operating system.

After completion, the virtual machine is returned to its standard configuration and is ready for normal operation.


Remediation Runbooks

Remediation Runbook (No vTPM)

Follow the full three-step procedure described above (Steps 1–3).


Remediation Runbook (vTPM)

Same procedure as Remediation Runbook (No vTPM) as long as no BitLocker is used.


Remediation Runbook (vTPM with BitLocker Enabled)

When BitLocker is active, additional steps are required before and after the standard remediation.

StepResponsibleAction
Suspend BitLockerCustomerBefore starting the remediation, suspend BitLocker
Run RemediationSwisscom / CustomerExecute Steps 1–3 as described in Remediation Runbook (No vTPM)
Resume BitLockerCustomerAfter successful remediation, resume BitLocker

Suspend BitLocker (run before Step 1):

Suspend-BitLocker -MountPoint "C:" -RebootCount 0

Resume BitLocker (run after Step 3):

Resume-BitLocker -MountPoint "C:"
This is an information message

Important

Resuming BitLocker will generate a new BitLocker key and the disk will be re-encrypted. Make sure to safely and centrally store the new BitLocker recovery key.

Last Updated: