@Tom-Elliott Thank you once again for the amazing support and turnaround.
Latest posts made by Shuttleu
-
RE: 1.6.0.14: Web UI not staying signed in?posted in FOG Problems
-
1.6.0.14: Web UI not staying signed in?posted in FOG Problems
Not sure if it’s something I have enabled or a checkbox I’ve forgotten to tick, but I seem to be unable to get the
Remember Mebox to function.If I log in to the web interface, check the box to
Remember Me, come back to it a few hours later, I’ll get a message that my session has expired and I need to log in again.Are there any known issues regarding this functionality?
-
RE: FOG Server 1.6 Fails to install Secureboot certificates with Custom CA and Secure Boot keys?posted in FOG Problems
@Tom-Elliott Good news, I can confirm that
20261105-164908does now show a success, though if we didn’t start the enrolment through the web UI, we get an error about a task not being present. Presumably this gets updated when the agent manages to contact the FOG server after deployment.For the FOG Agent, it turns out we had originally installed the FOG Agent on our test device when we originally attempted to upgrade 1.5 to 1.6, before we installed decided to start afresh on 1.6, so it got the certificate from the old 1.5 server.
Removing and reinstalling the FOG Agent, doesn’t seem to update the certificate it pins itself against, so the agent was failing with a certificate error.
Removing and reinstalling the agent with the correct fingerprint did not help either.Running
./fog-agent.exe ca probe --server https://fogserver/fog server: https://fogserver/fog trust: this machine's certificate store, for this server name certificate: CN=fogserver,OU=FOG Web UI,O=FOG Project issued by: CN=Comapny-InternalCA,OU=IT,O=Comapny,L=City,ST=State,C=Country,1.2.840.113549.1.9.1=#0c1569744074686f6d61737269646c65792e636f2e756b expires: 2031-11-04T13:48:59Z This machine already trusts the server's certificate for this name, and FOG's own CA did not issue it. There is no fingerprint to compare: the agent checks the server the way a browser does, so a renewed certificate keeps working.Doesn’t give a fingerprint I can use.
The solution was to remove FOG Agent, then delete
C:/ProgramData/FOGand install without giving the certificate fingerprintmsiexec /i fog-agent-0.1.20-x64.msi /qb SERVER=https://fogserver/fog TOKEN=6908e30fed... /l*v C:\fog-agent-install.logI’m going to try pushing it to a couple devices running the old client and see if they show up on the new server.
-
RE: FOG Server 1.6 Fails to install Secureboot certificates with Custom CA and Secure Boot keys?posted in FOG Problems
@Tom-Elliott Thanks for the quick reply.
So as long as we don’t need to update the DB, we’re fine to continue signing efi files with out DB certificate as we did before, correct? Or is there a way to get FOG to sign our efi files that we pass it?
If we do want to update the DB, we’ll need to grab the KEK cert and key from the FOG server and use that to generate updates?The computers we mainly have are HP ProBook 450 G10 using the latest UEFI V72 01.13.01
Thank you for your help.
Just checking out the new FOG Agent as well and it seems to be installing successfully, but it’s not showing up under Hosts or Agents in the Web UI.
With the old FOG Client, there was a log file in C:/Program Files (x86)/FOG, but we’re not seeing a log file for the new FOG Agent. The service is running, but there is only a single binary in C:/Program Files/FOG, no log file or anything.
Install command wasmsiexec /i fog-agent-0.1.20-x64.msi /qb SERVER=https://fogserver/fog CAFINGERPRINT=94:0B:C9:35:... TOKEN=6908e30fed... /l*v C:\fog-agent-install.logThe token is also showing as unused in the Web UI
-
FOG Server 1.6 Fails to install Secureboot certificates with Custom CA and Secure Boot keys?posted in FOG Problems
Hi, hope I can get some help with a problem I’ve come across and want to get some advice before continuing too far down a rabbit hole.
We (the company I work for) run a FOG Server which we’ve used for the last year or so on 1.5, managing roughly 100 laptops/desktops.
We have a root CA which we use for all internal systems and so the certificate is pushed out via GPO to be installed in the Trusted Root Certification Store.
We also have custom Secure Boot keys to ensure we can boot the devices via network without having to disable Secure Boot.When installing 1.5, we had the web server set up to use a certificate that we generated for FOG and manually signed the efi images with our Secure Boot keys.
Moving over to 1.6, we want to clean this up and let FOG handle all the signing on our behalf, so decided it would be best to start afresh.
Seeing as we’re going to be installing the fog agent (which removes the old fog client), server pinning wont be an issue, so long as it can use the same Secure Boot DB certificate for signing and server a web server certificate that ends in our internal CA.We generated a new intermediate CA certificate for FOG signed by our trusted Root CA, spun up a new VM and installed a fresh copy of FOG 1.6 with the following commands
installfog.sh --install-mode embed-ca --https-redirect --web-ca-cert interca.crt --web-ca-key interca.key --web-ca-root ca.pem --internal-domain fogserver.local --secure-boot-key DB.key --secure-boot-cert DB.certThis looks like it worked and our web interface was indeed signed by a certificate that ends in our Root CA.
Checking the Secure Boot images with sbverify also confirms that the efi files are signed correctly too.$ sbverify --cert DB.crt /tftpboot/secureboot/ipxe-shimx64.efi warning: data remaining[920352 vs 1048424]: gaps between PE/COFF sections? Signature verification OKHowever with this setup, ipxe refuses to load boot.php because aparently it is not built with my CA? See Github issue
This issue and its resulting fix seems to recommend pointing towards snponly.efi, which also seems to be signed correctly and boots fine.
$ sbverify --cert /home/administrator/fogcerts/DB.crt ipxe.efi Signature verification OKGreat! lets move onto enrolling Secure Boot keys!
First we put a device in setup mode, booted FOG and choose to “Enroll Secure Boot Key (Unattended)”, but we get an error message stating that “Automatic Secure Boot enrollment failed”
Looking into the UEFI interface, the system is now in custom mode rather than setup, so it seems that the keys are indeed enrolled. Running the enrolment again says that the certificate is already trusted, so it looks like it has indeed worked after all.
To be on the safe side, we decided to try “Enroll Secure Boot Key (MOK attended setup)”. We get the blue screen, choose to install MOK.der and then reboot, but we don’t get the screen to confirm a pin code to finish enrolling the keys into MOK.
We’ve basically answered our own question about whether the keys are actually getting enrolled into the DB, it’s the messages we’re getting which are throwing us off. The Enrolment says it has failed, why is this?
We want to make sure we have all the answers and to ensure there isn’t going to be issues further down the line if we continue with the setup we currently have.