Secure Boot Issue with Nvidia Drivers After Kernel Update on Fedora 41

Hello,
I have a dual-boot computer running Fedora 41 and Windows 11 with Secure Boot enabled.

The computer specifications are as follows: GPU Nvidia 4080 Super and CPU AMD Ryzen 7 9750X3D.

I successfully installed the Nvidia drivers using the official installer from the manufacturer (not the ones provided by Fedora’s repositories) by blacklisting the Nouveau drivers in the kernel startup line, following the suggestions on this website: link. I want to clarify that this entire procedure was carried out with Secure Boot active.

During the first installation of the Nvidia drivers, I had the installer generate new certificates to sign the video drivers, which I then correctly appended to the original Windows certificates. Initially, the /lib/modules/<kernel>/extra/ directory contained all the uncompressed Nvidia driver files. However, after a kernel update, the video drivers failed to load.

I immediately noticed that the files in the mentioned directory had changed from .ko to .ko.xz. According to the kernel startup logs obtained via dmesg, the system could not recognize the drivers’ signature. I attempted to sign the drivers (removing the compression and then reapplying it using the xz and unxz commands without encountering errors) with the certificates previously generated by the Nvidia installer. Unfortunately, this did not resolve the issue, as the drivers still failed to load.

How can I fix this?