UEFI Secure Boot

Is it possible to run FreeBSD with Secure Boot? There is a module called Shim which is used to start Linux from Secure Boot. Can it (or similar) be used to load FreeBSD?

Somebody may ask why I need Secure Boot when the OS is open source. The main reason is to have auto-starting system with encrypted storage.
 
Also: if the UEFi firmware on the machine supports (allows) use of MOK (Machine Owner Key) when Secure Boot is on varies from machine to machine. If you are able to enroll your own MOK but the firmware doesn't read it when Secure Boot is on (for whatever reason) you are back to square one, as the chances of getting either Microsoft or the vendor of the machine to sign your binaries are zero.
 
If you have MOK, probably you can use it to sign the boot loader file of Windows. I am not sure for details but if you can change the default Microsoft key, it can be restored in some way. Nobody will expect that Microsoft will sign any file for end user. For similar reason exists Shim.
 
I thought about secureboot some time ago, and the only point I can see is, it protects against booting a specific system, but if you have encryption in place during boot, what kind of difference would it make ?
Out of curiosity I am going to try out secureboot on FreeBSD.

EDIT:
The above commands worked for me.
 
I thought about secureboot some time ago, and the only point I can see is, it protects against booting a specific system, but if you have encryption in place during boot, what kind of difference would it make ?

The unencrypted early stages of the boot could be replaced by an adversary with versions that log your passphrase when you next boot the thing.
 
The unencrypted early stages of the boot could be replaced by an adversary with versions that log your passphrase when you next boot the thing.
Not only this. There is automatic mode when OS is loaded without passphrase - the files on unencrypted boot partition automatically download the key (for LUKS or BitLocker) and use it later in boot process. Without Secure boot they can be replaced with similar files which log the key.
 
Back
Top