<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[FOG Secure Boot with Shim]]></title><description><![CDATA[<p dir="auto">Hi Everyone!</p>
<p dir="auto">As part of a network migration at my job we’ve been moving towards FOG. Not satisfied with the advice of “just turn secure boot off and on again” and not wanting to mess around with trying to convince a variety of different UEFI implementations to take my custom key, I decided to instead try and hack something together with rhboot’s shim to try and get this to work. And I’m happy to report I’ve managed to get my setup working on most of our computers, with only a minority refusing to work (most of the problems being caused by Dell).</p>
<p dir="auto">I figured this would be of interest to some people here as I see that Secure Boot is an often asked about topic, and the current solutions aren’t brilliant. While there is a project called foguefi which uses grub and custom kernel to do a similar thing to this, mine requires fewer modifications to FOG as a whole, and could conceivably be implemented officially, especially if iPXE ever managed to get their shim signed by Microsoft.</p>
<p dir="auto">This guide will do into a bit of detail, so first off I’ll explain how the whole process works, and what this looks like to a Technician who is using fog. However feel free to skip to the guide below.</p>
<h1>What is Shim?</h1>
<p dir="auto">The main problem that projects like fog face with implementing Secure Boot is that you must have Microsoft signed binaries. This however poses a problem for open source software, particularly Linux distros. Getting binaries signed by Microsoft is a lengthy, expensive and often impractical thing to do for every Linux distro every time the kernel or grub updates. As such rhboot have created shim.</p>
<p dir="auto">Like how the name suggests shim is a first stage bootloader designed to be signed by Microsoft making it secure boot compatible and then load a verified binary (such as a Linux Kernel, or even another bootloader), using a combination of MOK (Machine Owner Keys), embedded secure boot keys, and regular Secure Boot keys.</p>
<p dir="auto">This allows a distro to get one binary signed (the shim) and then sign their bootloaders and kernels themselves. This is the approach used by most major Linux distros. They get a signed shim binary built with their custom secure boot key embedded, and then sign all their binaries with that.</p>
<p dir="auto">The above approach works really well, except for if you need to modify the kernel after distribution, say if you want to build in an additional driver without updating the kernel. This poses a problem because that means you either have to distribute the certificate and keys you use for signing (which instantly invalidates any protection Secure Boot provides), or you need to find a way to let a user enrol their own Secure Boot keys.</p>
<p dir="auto">This is where the MOK comes in, if built with it enabled, upon failing to verify the requested binary with an embedded key or an existing secure boot key shim will fallback on another signed binary called mok manager.  This binary allows you to enrol your own keys or binaries into your UEFI’s nvram, which shim will check against for a match. This in effect allows you to enrol your keys in a consistent (provided your UEFI implementation is good), device independent way, without ever having to boot into setup.</p>
<p dir="auto">As a bonus this is exposed at runtime too, so you can use a Linux utility called mokutil to schedule keys to be enrolled next time a shim mok manager combo is booted.</p>
<p dir="auto">To summarise, this means that to a technician, when network booting a new machine, they will be presented with mok manager, which can then be used to enrol a key, that on next boot will allow the shim to validate the iPXE binary and successfully load it.</p>
<p dir="auto">Now that the explaining is out of the way, lets get onto setup.</p>
<h1>Setting up FOG with Secure Boot via shim</h1>
<h2>Preparing iPXE for shim</h2>
<p dir="auto">In order to maintain the benefits of secure boot, any secondary bootloader, such as GRUB or iPXE must also somehow verify that the binaries they are loading are correctly signed. In iPXE’s case, by default it simply checks if the binary has a valid matching secure boot key.  This poses a problem for our set up as we don’t a valid secure boot key enrolled, only a valid MOK. One solution to this is to load the shim a second time and perform a nested boot.</p>
<p dir="auto">This has a couple of problems however, due to the way shim works (See this <a href="https://github.com/rhboot/shim/issues/549" target="_blank" rel="noopener noreferrer nofollow ugc">issue</a> if you are interested). To workaround this, the iPXE team have implemented a shim command, that can be used to specify a shim to be loaded and used to validate any binaries called.</p>
<p dir="auto">This is where our first modification comes in. The version of iPXE built by FOG, lacks the shim command as they have modified a few header files, one of which includes the definition that enables the command. This is reasonably easy to fix however, as you can follow the <a href="https://docs.fogproject.org/en/latest/kb/reference/compile_ipxe_binaries/?h=ipxe" target="_blank" rel="noopener noreferrer nofollow ugc">FOG guide for rebuilding iPXE yourself</a>, however before you actually build it simply add the following line to the general.h file.</p>
<pre><code>#define SHIM_CMD		/* EFI shim command (or dummy command) */
</code></pre>
<p dir="auto">Once added and binaries you build will have the shim command enabled.</p>
<p dir="auto">Alternatively you could try using an official iPXE build, which has these commands enabled by default. I haven’t tried this, but can’t think of a reason it wouldn’t work. Regardless your mileage may vary. This also will change a step later on, but I’ll mention that when we get to it.</p>
<h2>Obtaining a shim</h2>
<p dir="auto">Now for the next step. We need a Microsoft signed shim. I’m not going to provide one directly here, but they’re fairly easy to obtain. Most major linux distros (rhel, Fedora, Ubuntu, Debian etc) have one, and you can just take theirs, in fact you can probably use the one provided by the distro you’re running fog on.</p>
<p dir="auto">To get this, you simply need to copy the file to your tftpboot folder. For example on ubuntu you would do something like this:</p>
<pre><code>#You may need to run these commands with sudo
#Copy the shim (you can rename this, this is just the file that most UEFI implementations will boot by default)
cp /boot/efi/EFI/BOOT/BOOTX64.efi /tftpboot
#Copy mok manager (I don't believe you can rename this as shim specifically looks for this filename to boot.
cp /boot/efi/EFI/BOOT/mmx64.efi /tftpboot
</code></pre>
<p dir="auto">It’s important you copy both these files as without mok manager you will be unable to enroll the key at boot. Once they’re copied, you can point your DHCP server towards the file, and then you’re devices will boot the shim, however we need shim to boot our iPXE binary. At the moment it won’t have anything to boot.</p>
<p dir="auto">By default, most shims are configured to boot grub, generally they do this the same way it boots mok manager. It looks for a file named grubx64.efi, as such if we copy our iPXE binary over to grubx64.efi and will attempt to boot it. However, if you try to boot now, you’ll probably encounter a problem. Although you get to mok manager fine, you have no key to enrol, and your iPXE binary isn’t signed so you’ll never get past mok manager.</p>
<h2>Signing your binaries</h2>
<p dir="auto">There are a couple of different ways to do this, however I’ve only used the sbsign tool and a script called mkkeys which there is already an excellent guide for by <a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/30416">@george1421</a> which you can find <a href="https://forums.fogproject.org/topic/15888/imaging-with-fog-and-secure-boot-poc" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
<p dir="auto">It’s a little in depth and goes into enrolling these keys in your machine via the UEFI, however you can just follow the guide’s sections on creating the keys and certificates, and on signing your binaries… Remember to sign grubx64.efi as well, as this is the iPXE binary that we will be booting from.</p>
<h2>Nesting your shim</h2>
<p dir="auto">Now that we’ve signed our binaries, we’re almost done. There’s one final step. You might recall that iPXE needs to load the shim a second time using the shim command. The easiest way to do this is to modify your default.ipxe script. This script is completely static and not modified by fog, unlike other scripts later on which are modified dynamically. This is very simple to do as you can easily just add the following line anywhere before the script chainloads boot.php!</p>
<pre><code>shim tftp://{fog server ip}/{shim file here}
</code></pre>
<p dir="auto">For example if you are setting this up on a node at 192.168.0.10 and you renamed your shim file to shim.efi you would add the following line.</p>
<pre><code>shim tftp://192.168.0.10/shim.efi
</code></pre>
<p dir="auto"><em><strong>NOTE:</strong></em> If you are using an official build, your iPXE binary will not automatically try to call default.ipxe, but as part of trying to get a shim for iPXE, they have implemented a standard ipxe script themselves called autoexec.ipxe which it will attempt to load on boot. As such you can simply make a copy of your default.ipxe script as autoexec.ipxe</p>
<h2>Booting and enrolling keys</h2>
<p dir="auto">Now that the set up is complete, it’s time to boot and enrol your key in a machine to test it out. In order to enrol the keys onto your machine, you will need to place them on a FAT32 formatted USB stick as this is the only file system I am aware of mok manager being able to read.</p>
<p dir="auto">Once this is done, you can simply network or PXE boot your machine as normal, and when it will first boot into shim and then shim will attempt to load iPXE, but will fail because it can’t a valid key. It will then fallback to mok manager which will load an display a blue simple text menu.</p>
<p dir="auto">To enrol your key, follow these steps:</p>
<ul>
<li>Ensure your USB drive is inserted into an active port.</li>
<li>Select Enrol key from disk</li>
<li>Chose the partition on your USB drive from the list (if you didn’t choose a label for the partition, it may appear instead as a PCI device path)</li>
<li>Navigate to the file on your USB Drive</li>
<li>Select it and pick Continue.</li>
<li>Then choose yes, and then finally reboot.</li>
</ul>
<p dir="auto">If done correctly on your next boot, the shim will successfully validate your iPXE binary and boot into it. At this point iPXE will configure as normal, load the shim an additional time, and then finally continue to boot your other binaries as normal.</p>
<p dir="auto">If you’re having trouble following the steps, Ventoy has a good section that walks you through the process of using mok manager, complete with a GIF demonstrating the process. You can find this <a href="https://ventoy.net/en/doc_secure.html" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
<p dir="auto">If you have any questions on this process, feel free to reply and ask away. I’m by no means an expert but I’ll be happy to do my best to help. I’m going to add one final section for FAQs and known issues and workarounds that I’ll fill up as I find them (including a couple of big ones I am aware of from my testing.</p>
<h2>Known issues and Workarounds</h2>
<h3>Dell Machines not loading into iPXE</h3>
<p dir="auto">There appears to be a bug in some dell machines’ UEFI which causes it to pass the network cards boot entry name as a file to be loaded. This is solved in shim 16.0, but as far as I am aware at the time of writing, there are Microsoft signed copies of that version with MOK enabled. Once I am aware that one has been signed, I’ll update this with details.</p>
<p dir="auto">In the meantime you can workaround this issue by creating the file it expects to be loaded. You can find more details on the issue in general and this workaround on the following links, including a section of the script from the foguefi project that will generate these files for you.</p>
<p dir="auto"><a href="https://github.com/rhboot/shim/issues/649" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/rhboot/shim/issues/649</a><br />
<a href="https://github.com/rhboot/shim/issues/649#issuecomment-2582917049" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/rhboot/shim/issues/649#issuecomment-2582917049</a><br />
<a href="https://github.com/abotzung/foguefi/blob/main/install.sh#L357" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/abotzung/foguefi/blob/main/install.sh#L357</a></p>
<h3>Some Dell machines refuse to enrol keys</h3>
<p dir="auto">Some Dell’s have another UEFI bug which seems to cause mok manager to keys are in valid because they fail the file extension check. I’m not sure why this happens, but it appears to be based on the length and contents of the filename. On the machines I’ve tested with this issue the names “ENROL_THIS_KEY_IN_MOK_MANAGER.cer” which is used by Ventoy, and “TESTING123.cer” which I found, both seem to work fine.</p>
<p dir="auto">I’m unfortunately not aware of any actual fixes here, as I believe this is an issue with the machine’s UEFI not shim.</p>
<h2>FAQs</h2>
<p dir="auto">I currently don’t have anything to put here, I’ll add FAQs as they pop up.</p>
<p dir="auto">This is my first time posting here as well, I did look around for any rules to follow, but I couldn’t find any. Apologies if I’ve broken any, happy to amend things to comply to any.</p>
]]></description><link>http://forums.fogproject.org/topic/17949/fog-secure-boot-with-shim</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Nov 2026 07:31:29 GMT</lastBuildDate><atom:link href="http://forums.fogproject.org/topic/17949.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 Aug 2025 09:04:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Wed, 02 Sep 2026 22:13:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/6483">@jmeyer</a> I have some e16 g1s and I am not having the same issue. What version of fog are you running? Are there any other secure boot settings you have configured or maybe not configured? Can you get to the mok enroll with secure boot off? And then turn it back on?</p>
]]></description><link>http://forums.fogproject.org/post/158620</link><guid isPermaLink="true">http://forums.fogproject.org/post/158620</guid><dc:creator><![CDATA[JJ Fullmer]]></dc:creator><pubDate>Wed, 02 Sep 2026 22:13:46 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Wed, 02 Sep 2026 14:08:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/49110">@KMEH</a> It’s fix for ThinkBook 15-IIL (2nd photo).<br />
I have run git pull, run install and now MOK management load fine.<br />
I don’t know why since I was already on version 1.5.1.2254 and I don’t see change on GitHub…</p>
]]></description><link>http://forums.fogproject.org/post/158616</link><guid isPermaLink="true">http://forums.fogproject.org/post/158616</guid><dc:creator><![CDATA[jmeyer]]></dc:creator><pubDate>Wed, 02 Sep 2026 14:08:11 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Fri, 28 Aug 2026 13:07:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/6483">@jmeyer</a> The first screenshot, I can’t really say what’s wrong beyond for some reason, shim either immediately exits or doesn’t start so the EFI instead moves onto the next boot option which is IPv6.</p>
<p dir="auto">The second one, MOK.DER is being loaded, but mokmanager itself (which does the enrolling) is failing to load. Exec format error is usually caused either by trying to load a binary built for the wrong architecture (e.g arm on an x86 CPU) or when you have Secure Boot enabled, but the binary you’re trying to load isn’t signed by one of the keys enrolled in the firmware.</p>
<p dir="auto">So, for the second one, double check that you have the Microsoft keys enrolled in the firmware, or try it with secureboot off and see if that fixes it.</p>
<p dir="auto">I’m not quite sure what to suggest for the first one, other than maybe try network booting with secureboot off to the standard snponly.efi binary.</p>
]]></description><link>http://forums.fogproject.org/post/158582</link><guid isPermaLink="true">http://forums.fogproject.org/post/158582</guid><dc:creator><![CDATA[KMEH]]></dc:creator><pubDate>Fri, 28 Aug 2026 13:07:11 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Wed, 26 Aug 2026 07:52:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/7217">@Tom-Elliott</a><br />
Something isn’t working well for me.<br />
I can’t get iPXE menu when secureboot is enable and secureboot/snponly-shimx64.efi is set.</p>
<p dir="auto">On a Lenovo ThinkPad E16 Gen 1, I only have this :<br />
<img src="/assets/uploads/files/1787730492011-9b9dee1d-92da-4baf-9afc-0e60d4f74b01-image.png" alt="9b9dee1d-92da-4baf-9afc-0e60d4f74b01-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I acces on iPXE menu a Lenovo ThinkBook 15-IIL but yet I think MOK.DER isn’t registering well even with an usb key connected formatted in fat32 with the 3 files.<br />
<img src="/assets/uploads/files/1787730684888-94105339-cff4-4e2f-a839-eb0977c8c936-vlcsnap-2026-08-26-09h50m19s364.png" alt="94105339-cff4-4e2f-a839-eb0977c8c936-vlcsnap-2026-08-26-09h50m19s364.png" class=" img-fluid img-markdown" /> <a href="https://streamable.com/v6wyus" target="_blank" rel="noopener noreferrer nofollow ugc">https://streamable.com/v6wyus</a></p>
]]></description><link>http://forums.fogproject.org/post/158539</link><guid isPermaLink="true">http://forums.fogproject.org/post/158539</guid><dc:creator><![CDATA[jmeyer]]></dc:creator><pubDate>Wed, 26 Aug 2026 07:52:31 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Tue, 25 Aug 2026 12:59:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/6483">@jmeyer</a> I’m confused what you’re asking?</p>
<p dir="auto">secureboot/snponly-shimx64.efi simple is the shim that agrees with the signed snponly.efi. This agreement is only required during “Secure Boot Enabled”, but would/should still work if used for booting “secure boot disabled”.</p>
<p dir="auto">We already have an ability to boot to the mok manager from the iPXE menu, as well as loading into FOS as its own specific task.</p>
]]></description><link>http://forums.fogproject.org/post/158537</link><guid isPermaLink="true">http://forums.fogproject.org/post/158537</guid><dc:creator><![CDATA[Tom Elliott]]></dc:creator><pubDate>Tue, 25 Aug 2026 12:59:31 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Tue, 25 Aug 2026 12:28:03 GMT]]></title><description><![CDATA[<p dir="auto">Using “secureboot/snponly-shimx64.efi” without secureboot works like snponly.efi ?</p>
<p dir="auto">Could it be possible to add a very lightweight OS such as Tiny Core Linux with enrolment kit inside (or that get it from web link) that would enrol key automatically via pxe menu ? <img src="http://forums.fogproject.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f644.png?v=7ddmg541643" class="not-responsive emoji emoji-android emoji--face_with_rolling_eyes" style="height:23px;width:auto;vertical-align:middle" title=":face_with_rolling_eyes:" alt="🙄" /> <img src="http://forums.fogproject.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f605.png?v=7ddmg541643" class="not-responsive emoji emoji-android emoji--sweat_smile" style="height:23px;width:auto;vertical-align:middle" title=":sweat_smile:" alt="😅" /></p>
]]></description><link>http://forums.fogproject.org/post/158535</link><guid isPermaLink="true">http://forums.fogproject.org/post/158535</guid><dc:creator><![CDATA[jmeyer]]></dc:creator><pubDate>Tue, 25 Aug 2026 12:28:03 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Wed, 19 Aug 2026 10:55:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/7217">@Tom-Elliott</a> Just a thought, was reading through the docs and I noticed that because of the adhereance to stock iPXE 2.0 netbooting with HTTPS is disabled by default. This may be a little too complicated so I’d get avoiding this, but you could probably work around this by nesting shim and iPXE to boot a custom signed iPXE. It would work something like this:</p>
<ul>
<li>Netboot iPXE 2.0 normally with it’s shim</li>
<li>Use autoexec.ipxe with the shim command to reload that shim</li>
<li>Using autoexec.ipxe chainload a custom build of iPXE 2.0 that has the FOG certificate bundled and trusted.</li>
</ul>
<p dir="auto">If the binary chained isn’t already trusted, I believe you should be able to use some scripting to then automatically chain in mokmanager or fallback to chaining via http.</p>
<p dir="auto">Provided you use the normal FOG signing keys, this should work fine, though it does mean having two shims. It may be worth it to close that small gap in HTTPS. Both the shim and custom iPXE could be chain loaded via TFTP. It does add a little more complexity to the signing and boot process but I figured it was worth mentioning, as having HTTPS wherever possible does seem valuable.</p>
]]></description><link>http://forums.fogproject.org/post/158506</link><guid isPermaLink="true">http://forums.fogproject.org/post/158506</guid><dc:creator><![CDATA[KMEH]]></dc:creator><pubDate>Wed, 19 Aug 2026 10:55:41 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Tue, 18 Aug 2026 12:01:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/7217">@Tom-Elliott</a> Ah yes, thanks. That’s what I was looking for. I was checking on that page but I couldn’t find it, even did a ctrl+f for secure boot. I wonder if it was an old cache or something, weird!</p>
]]></description><link>http://forums.fogproject.org/post/158499</link><guid isPermaLink="true">http://forums.fogproject.org/post/158499</guid><dc:creator><![CDATA[KMEH]]></dc:creator><pubDate>Tue, 18 Aug 2026 12:01:45 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Tue, 18 Aug 2026 11:24:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/49110">@KMEH</a> This might be able to help:<br />
<a href="https://docs.fogproject.org/en/latest/management/server/install-fogsettings/" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.fogproject.org/en/latest/management/server/install-fogsettings/</a></p>
]]></description><link>http://forums.fogproject.org/post/158498</link><guid isPermaLink="true">http://forums.fogproject.org/post/158498</guid><dc:creator><![CDATA[Tom Elliott]]></dc:creator><pubDate>Tue, 18 Aug 2026 11:24:30 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Tue, 18 Aug 2026 07:42:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/7217">@Tom-Elliott</a> Haha thank you! I was more referring to it slipping past my radar… I’m not sure how I missed it being added to be honest, I’d even read the patchnotes for that version of FOG and missed it.</p>
<p dir="auto">I’m glad my attempts were able to help get this implemented one way or another. I’m going to update my ansible role as it’s currently broken due to the changes (it manually rebuilt iPXE itself with some files from the FOG repo which have now been removed due to the transition to 2.0 so that no longer works), and then I’ll give it a whirl.</p>
<p dir="auto">Out of interest, I assume that like the other install time parameters this can be set by the .fogsettings file rather than the command line. I had a look in the docs and I can’t see a matching parameter listed, but I’m not sure if that’s because it isn’t supported or just the docs having not been updated yet.</p>
<p dir="auto">The role uses templating with the .fogsettings file for the majority of the settings (it’s easier than conditionally setting command line parameters), so I’d much prefer to be able to adjust this from the file if I can!</p>
]]></description><link>http://forums.fogproject.org/post/158497</link><guid isPermaLink="true">http://forums.fogproject.org/post/158497</guid><dc:creator><![CDATA[KMEH]]></dc:creator><pubDate>Tue, 18 Aug 2026 07:42:34 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Mon, 17 Aug 2026 22:20:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/49110">@KMEH</a> This wasn’t somehow. partly it was yours (among all the others) requests for secure boot and some max access to claude that really helped get this more flushed out more properly.</p>
<p dir="auto">And a lot of mind tossing to get there.</p>
<p dir="auto">Hopefully you enjoy it and like it (everyone).</p>
]]></description><link>http://forums.fogproject.org/post/158495</link><guid isPermaLink="true">http://forums.fogproject.org/post/158495</guid><dc:creator><![CDATA[Tom Elliott]]></dc:creator><pubDate>Mon, 17 Aug 2026 22:20:18 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Mon, 17 Aug 2026 13:09:48 GMT]]></title><description><![CDATA[<p dir="auto">So, somehow this slipped by my radar, but this guide is now largely obsolete! Pretty much everything done here now seems to be automatically handled by FOG after the transition to iPXE 2.0. FOG will now generate it’s own signing keys and seemingly sign the kernels for you, and provides a dedicated boot menu entry to enroll keys via MOK! I’ve yet to test this myself so happy to be corrected if I’m missing anything here.</p>
<p dir="auto">Additionally, it looks like you can pretty easily migrate existing keys into this setup with some install parameters. I’ll be updating my ansible role to acomodate these changes soon!</p>
]]></description><link>http://forums.fogproject.org/post/158492</link><guid isPermaLink="true">http://forums.fogproject.org/post/158492</guid><dc:creator><![CDATA[KMEH]]></dc:creator><pubDate>Mon, 17 Aug 2026 13:09:48 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Thu, 09 Jul 2026 12:52:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/6483">@jmeyer</a> Good work. So far looks very similar to what I was doing above but with grub instead. I’m guessing you’re aiming for something along the lines of the archived project you mentioned earlier that did this. Make sure you modify your ipxe scripts to load the shim with the shim command, and then sign whatever you’re booting from ipxe and you should be more or less there.</p>
<p dir="auto">It’s worth noting if you want you should be able to skip the grub stage entirely, if you load the shim directly and name your ipxe binary what you’re grub binary currently is you should be able to net boot any shim pretty easily, from there the shim can automatically call mok manager as long as it’s in the same directory as your shim.</p>
<p dir="auto">Sorry for responding so late. I’m out on training this week.</p>
]]></description><link>http://forums.fogproject.org/post/158356</link><guid isPermaLink="true">http://forums.fogproject.org/post/158356</guid><dc:creator><![CDATA[KMEH]]></dc:creator><pubDate>Thu, 09 Jul 2026 12:52:03 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Thu, 09 Jul 2026 12:51:08 GMT]]></title><description><![CDATA[<p dir="auto">I remplaced grubx64 by grubnetx64 (not sure if needed but was recommanded for PXE) and create a “grub” directory in tftpboot with “grub.cfg” inside.<br />
Grub signed look for cfg file in a subdir called “grub” by default.</p>
<pre><code>cp /usr/lib/grub/x86_64-efi-signed/grubnetx64.efi.signed /tftpboot/grubx64.efi
mkdir /tftpboot/grub
chmod -R a+rX /tftpboot/grub
</code></pre>
<p dir="auto">I get grub menu.</p>
<p dir="auto">update (10 am) :<br />
I copied snponly.efi in grub directory and signed it with the FOG-MOK key I generated before.</p>
<pre><code>sbsign --key /root/secureboot/FOG-MOK.key --cert /root/secureboot/FOG-MOK.crt /tftpboot/snponly.efi --output /tftpboot/grub/snponly.efi
</code></pre>
<p dir="auto">I end with “error ; bad shim signature”.<br />
I think I need to import the key on the computer with command “mokutil --import /chemin/vers/FOG-MOK.der”</p>
<p dir="auto">I keep on searching…</p>
<p dir="auto">2nd update (12:30 am):</p>
<p dir="auto">To enroll key :</p>
<pre><code>cp /usr/lib/shim/mmx64.efi.signed /tftpboot/mmx64.efi
</code></pre>
<p dir="auto">and in tftpboot/grub/grub.cfg</p>
<pre><code>menuentry 'Enroll MOK' {
    insmod tftp
    insmod chain
    chainloader (tftp,192.168.69.10)/mmx64.efi
    boot
}

menuentry 'Boot FOG (iPXE)' {
    insmod efinet
    insmod tftp
    insmod chain
    net_bootp
    chainloader (tftp,192.168.69.10)/grub/snponly.efi
    boot
}
</code></pre>
<p dir="auto">Copy the .der on usb key, put it on the computer, run “Enroll MOK” in pxe grub menu then “Enroll from disk”<br />
Reboot and run “Boot FOG” in pxe menu.</p>
<p dir="auto">And at least I have the FOG menu ! <img src="http://forums.fogproject.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f60e.png?v=7ddmg541643" class="not-responsive emoji emoji-android emoji--sunglasses" style="height:23px;width:auto;vertical-align:middle" title=":sunglasses:" alt="😎" /><br />
I think I’m in the right way. <img src="http://forums.fogproject.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f605.png?v=7ddmg541643" class="not-responsive emoji emoji-android emoji--sweat_smile" style="height:23px;width:auto;vertical-align:middle" title=":sweat_smile:" alt="😅" /></p>
<p dir="auto">Let’s keep on working.</p>
]]></description><link>http://forums.fogproject.org/post/158355</link><guid isPermaLink="true">http://forums.fogproject.org/post/158355</guid><dc:creator><![CDATA[jmeyer]]></dc:creator><pubDate>Thu, 09 Jul 2026 12:51:08 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Thu, 09 Jul 2026 06:54:49 GMT]]></title><description><![CDATA[<p dir="auto">Here is my first steps.</p>
<p dir="auto">Install signing tools on your FOG server</p>
<pre><code>apt update
apt install sbsigntool openssl mokutil
</code></pre>
<p dir="auto">Install shim &amp; grub</p>
<pre><code>apt install shim-signed grub-efi-amd64-signed
cp /usr/lib/shim/shimx64.efi.signed /tftpboot/shimx64.efi
cp /usr/lib/grub/x86_64-efi-signed/grubx64.efi.signed /tftpboot/grubx64.efi
</code></pre>
<p dir="auto">I end with this at PXE boot :<br />
<img src="/assets/uploads/files/1783510191892-9bc4ee10-4d23-4310-985a-2f77069082f2-image.png" alt="9bc4ee10-4d23-4310-985a-2f77069082f2-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Shim signature give this : (sbverify --list shimx64.efi)</p>
<pre><code>warning: data remaining[831016 vs 957136]: gaps between PE/COFF sections?
signature 1
image signature issuers:
 - /C=US/ST=Washington/L=Redmond/O=Microsoft Corporation/CN=Microsoft Corporation UEFI CA 2011
image signature certificates:
 - subject: /C=US/ST=Washington/L=Redmond/O=Microsoft Corporation/CN=Microsoft Windows UEFI Driver Publisher
   issuer:  /C=US/ST=Washington/L=Redmond/O=Microsoft Corporation/CN=Microsoft Corporation UEFI CA 2011
 - subject: /C=US/ST=Washington/L=Redmond/O=Microsoft Corporation/CN=Microsoft Corporation UEFI CA 2011
   issuer:  /C=US/ST=Washington/L=Redmond/O=Microsoft Corporation/CN=Microsoft Corporation Third Party Marketplace Root
</code></pre>
<p dir="auto">and grub sinature return :</p>
<pre><code>signature 1
image signature issuers:
 - /CN=Debian Secure Boot CA
image signature certificates:
 - subject: /CN=Debian Secure Boot Signer 2022 - grub2
   issuer:  /CN=Debian Secure Boot CA
</code></pre>
<p dir="auto">I tried creating MOK key but I’m stuck with security violation :</p>
<pre><code>mkdir /root/secureboot
cd /root/secureboot
openssl req -new -x509 -newkey rsa:2048 -keyout FOG-MOK.key -out FOG-MOK.crt -nodes -days 3650 -subj "/CN=FOG Secure Boot/"
openssl x509 -in FOG-MOK.crt -outform DER -out FOG-MOK.der
</code></pre>
<p dir="auto">FOG-MOK.key   &lt;-- private key (protect!)<br />
FOG-MOK.crt<br />
FOG-MOK.der   &lt;-- enroll this on clients</p>
<p dir="auto">Sign ipxe.efi and rename it to grubx64.efi</p>
<pre><code>cd /tftpboot
cp ipxe.efi ipxe.efi.original
sbsign --key /root/secureboot/FOG-MOK.key --cert /root/secureboot/FOG-MOK.crt /tftpboot/ipxe.efi --output /tftpboot/ipxe-signed.efi
cp ipxe-signed.efi grubx64.efi
</code></pre>
<p dir="auto">I think I need to work more and as Fog default exit type is refind, I’ll make more research.</p>
]]></description><link>http://forums.fogproject.org/post/158344</link><guid isPermaLink="true">http://forums.fogproject.org/post/158344</guid><dc:creator><![CDATA[jmeyer]]></dc:creator><pubDate>Thu, 09 Jul 2026 06:54:49 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Tue, 07 Jul 2026 14:39:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/6483">@jmeyer</a> I haven’t tested it at all myself, but I wonder if that is referring to the fact that if Secure Boot is turned on all binaries (even the chainloaded ones such as the linux kernel) must be Secure Boot compatible. I’ll be interested to hear of your tests.</p>
]]></description><link>http://forums.fogproject.org/post/158333</link><guid isPermaLink="true">http://forums.fogproject.org/post/158333</guid><dc:creator><![CDATA[KMEH]]></dc:creator><pubDate>Tue, 07 Jul 2026 14:39:58 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Tue, 07 Jul 2026 11:34:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/66">@Florent</a> <a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/49110">@KMEH</a><br />
First problem I see in the ipxe release is “x86-64 UEFI Secure Boot only”.<br />
So, if SB is not enable, it doesn’t work at all ?<br />
It also means that we need to make a SB check to say what efi file the computer need to use ?</p>
<p dir="auto">I’ll have some time this week, I’ll try make some tests.</p>
]]></description><link>http://forums.fogproject.org/post/158332</link><guid isPermaLink="true">http://forums.fogproject.org/post/158332</guid><dc:creator><![CDATA[jmeyer]]></dc:creator><pubDate>Tue, 07 Jul 2026 11:34:02 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Mon, 15 Jun 2026 09:54:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/66">@Florent</a> Hi Florent,</p>
<p dir="auto">I actually have been meaning to look into this some more, but the likely answer is no, or at least, not entirely. The way that support works is, you download a signed iPXE 2.0 binary from iPXE and a copy of their signed shim. That shim is signed with the Microsoft keys and trusts the iPXE signing keys. What this means in practical terms is, all the steps above would still need to occur, it’s just that the signing of the iPXE binary is managed by iPXE, and you don’t need to enroll a key to boot iPXE.</p>
<p dir="auto">That said, I would imagine this only covers you for booting iPXE, any chainloaded binaries would still need to be signed either with Microsoft’s key or a MOK key you’ve enrolled on the machine. In FOG’s case this means the FOS kernel has to be signed and trusted on the system, in addition to any other binaries (for example memtest, refind) you plan to boot via FOG.</p>
<p dir="auto">The other likely blocker is the build itself. Naturally, only iPXE can sign binaries that the iPXE Shim will support. Currently the FOG installer actually builds a slightly modified iPXE binary from source. While I’m unsure if these are all that different from the pre-built binaries from 2.0 in terms of support and functionality, it would at the very least need to be changed to instead pull the iPXE 2.0 binaries.</p>
<p dir="auto">I don’t think any of these are particularly hard to overcome or deal with though. The bottom line is, 2.0 makes it easier, but only to a point. To get real proper Secure Boot support in FOG, they’ll likely need to generate their own signing keys, and start signing at least the FOS kernels (if not iPXE itself) and update FOG to include shim support somehow.</p>
<p dir="auto">That said, for basic support, I doubt they would need to go the full mile and get a Microsoft approved signing key, I think distributing a certificate/key you can enroll via MokManager and using a pre-existing signed shim (like the iPXE provided one) would more than suffice for most usecases. I’m not sure how difficult it would actually be to implement any of this into FOG, that’s a question for someone who knows PHP and is more familiar with the FOG codebase than I.</p>
<p dir="auto">Sorry if that’s a bit long winded, it’s not an easy topic to distill. Hope that helps though.</p>
]]></description><link>http://forums.fogproject.org/post/158170</link><guid isPermaLink="true">http://forums.fogproject.org/post/158170</guid><dc:creator><![CDATA[KMEH]]></dc:creator><pubDate>Mon, 15 Jun 2026 09:54:26 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Fri, 12 Jun 2026 14:31:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/49110">@KMEH</a><br />
Hi,<br />
I don’t understand well evereything too, but thanks for your work and research on this.<br />
On the last IPXE release 2.0 (<a href="https://github.com/ipxe/ipxe/releases" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/ipxe/ipxe/releases</a>), i see</p>
<pre><code>Add support for UEFI Secure Boot via a dedicated iPXE shim.
</code></pre>
<p dir="auto">Does this mean that if FOG include this last ipxe release, Secure Boot support for FOG will be handled automatically?</p>
]]></description><link>http://forums.fogproject.org/post/158165</link><guid isPermaLink="true">http://forums.fogproject.org/post/158165</guid><dc:creator><![CDATA[Florent]]></dc:creator><pubDate>Fri, 12 Jun 2026 14:31:20 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Mon, 01 Jun 2026 07:41:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/6483">@jmeyer</a> Now worries, it gets a little confusing, and sorry for the late reply again, I was on Holiday last week so didn’t check the forums for a while. I believe that shim should already be signed and you should be able to use it. You should already have the signed shim package installed which would provide that file I would imagine, though I’m not familiar with Debian to say that with any certainty. However, that shim would need to be copied into the /tftpboot folder and it’s permissions changed accordingly. Remember to renamed your ipxe binary to grubx64.efi or whatever the Debian shim is programmed to automatically chainload.</p>
]]></description><link>http://forums.fogproject.org/post/158145</link><guid isPermaLink="true">http://forums.fogproject.org/post/158145</guid><dc:creator><![CDATA[KMEH]]></dc:creator><pubDate>Mon, 01 Jun 2026 07:41:49 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Thu, 28 May 2026 12:39:43 GMT]]></title><description><![CDATA[<p dir="auto">I don’t understand well everything but maybe it’s more complex than this and I understand nothing at all. haha</p>
<p dir="auto">On my server I have a “shimx64.efi” in “/boot/efi/EFI/debian/” can I use it directy or I must install shim-signed and use the shimx64.efi.signed ?</p>
]]></description><link>http://forums.fogproject.org/post/158133</link><guid isPermaLink="true">http://forums.fogproject.org/post/158133</guid><dc:creator><![CDATA[jmeyer]]></dc:creator><pubDate>Thu, 28 May 2026 12:39:43 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Thu, 16 Apr 2026 12:26:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/49564">@toalalife</a></p>
<blockquote>
<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/49110">@KMEH</a> Well, it must be another image I couldn’t attach.</p>
</blockquote>
<p dir="auto">Which image are you referring to here? bzImage? If so bzImage is the filename of the kernel.</p>
<blockquote>
<p dir="auto">I’ve honestly dedicated many hours to this without success. I’ve seen another project called foguefi (<a href="https://github.com/abotzung/foguefi" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/abotzung/foguefi</a>), compatible with Secure Boot directly, without using MOK, and it works. It’s just that when you select options like quickreg or deploy an image, it takes forever. But the point is, it works with recursive boot enabled. It shouldn’t be that complicated.</p>
</blockquote>
<p dir="auto">Yeah, I am aware of foguefi (I actually reference it in the original post), but I think you are slgithly mistaken, it actually is also using MOK. It chains grub via shim (which is similar to what we’re doing here, chaining iPXE via shim) and then re-implements the iPXE menus into grub. This works great, but requires a lot of maintenance effort if anything changes upstream in FOG.</p>
<p dir="auto">As you can see that project is currently archived, but FOG is also reasonably stable, so I’m not sure how long it will take for a breaking change to stop it from working. Part of the reason I devised this method is that (although hackier to implement on a user level), it doesn’t rely on any functionality that isn’t already present in standard FOG server itself for the most part and it could reasonably be implemented by the FOG developers should the wish to add it.</p>
<blockquote>
<p dir="auto">Anyway, do you have a list of commands to configure it? Maybe I or the AI ​​is missing something.</p>
</blockquote>
<p dir="auto">Sorry I’m a little lost here, commands to configure what? foguefi? If so I’m not sure, I haven’t used it myself so you’d have to ask the developer. If it’s commands to configure my method, the guide above should have everything you need.</p>
]]></description><link>http://forums.fogproject.org/post/158053</link><guid isPermaLink="true">http://forums.fogproject.org/post/158053</guid><dc:creator><![CDATA[KMEH]]></dc:creator><pubDate>Thu, 16 Apr 2026 12:26:41 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Wed, 15 Apr 2026 14:40:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/49110">@KMEH</a> Well, it must be another image I couldn’t attach. I’ve honestly dedicated many hours to this without success. I’ve seen another project called foguefi (<a href="https://github.com/abotzung/foguefi" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/abotzung/foguefi</a>), compatible with Secure Boot directly, without using MOK, and it works. It’s just that when you select options like quickreg or deploy an image, it takes forever. But the point is, it works with recursive boot enabled. It shouldn’t be that complicated.</p>
<p dir="auto">Anyway, do you have a list of commands to configure it? Maybe I or the AI ​​is missing something.</p>
]]></description><link>http://forums.fogproject.org/post/158050</link><guid isPermaLink="true">http://forums.fogproject.org/post/158050</guid><dc:creator><![CDATA[toalalife]]></dc:creator><pubDate>Wed, 15 Apr 2026 14:40:04 GMT</pubDate></item><item><title><![CDATA[Reply to FOG Secure Boot with Shim on Wed, 08 Apr 2026 16:07:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/49564">@toalalife</a> Hi there! Sorry for the late reply. I’ve been on holiday and I forgot to check up on this. That is interesting. There are a couple of things I can think of to double check/try off the top of my head.</p>
<p dir="auto">That particular error happens when iPXE can’t execute the binary, usually because either an architecture mismatch (e.g arm64 on x64) or because secboot fails to verify. Given that disabling secboot fixes it, I’m leaning towards that. (<a href="https://ipxe.org/err/2e0080" target="_blank" rel="noopener noreferrer nofollow ugc">https://ipxe.org/err/2e0080</a>)</p>
<p dir="auto">So I would say you should double check that your kernel is signed. If you’ve updated them you’ll have to resign the kernel to ensure it keeps working.</p>
<p dir="auto">The other would be to double check that the shim command is being invoked at some point prior to boot.php being chained. There’s a none zero chance that if you’ve updated FOG, it may have overwritten the modified default.ipxe</p>
<p dir="auto">Other than that, if you could try and record the boot process I’d be happy to take a look and see if I can spot anything out of the ordinary, I’m also happy to take a look at your kernel or any ipxe scripts etc if you want me to double check if they’re signed or bootable.</p>
<p dir="auto">As a final note, I don’t think I see iPXE loading the initrd.xz file there, which contains the ram filesystem that FOG uses on boot. I could be misremembering the boot process (I can’t recall if it’s normal for it to not do that if the bzImage fails to verify, or if it loads it prior to bzImage), but if that’s failing to load it might also be worth checking that out, though it shouldn’t have to be signed!</p>
]]></description><link>http://forums.fogproject.org/post/158036</link><guid isPermaLink="true">http://forums.fogproject.org/post/158036</guid><dc:creator><![CDATA[KMEH]]></dc:creator><pubDate>Wed, 08 Apr 2026 16:07:44 GMT</pubDate></item></channel></rss>