Sample Header Ad - 728x90

Insmod causes key rejected by service

4 votes
2 answers
14143 views
I am running AlmaLinux 9 (RedHat 9 clone) and have compiled a new kernel module. I am running in a VM with UEFI and secure boot enabled. When I insert the module I get the following error: insmod: ERROR: could not insert module npreal2.mod: Key was rejected by service From other posts I concluded it was related to UEFI/secure boot. So I disabled secure boot and then insmod reports: insmod: ERROR: could not insert module npreal2.mod: Invalid module format I tried recompiling with secure mode off then insmod worked, but I then have to leave secure boot disabled. How can I make this module work with secure boot? There is a post on github about creating your own MOK keys, but that seems to be DKMS specific.
Asked by TSG (1983 rep)
Jul 14, 2023, 08:09 PM
Last activity: Dec 27, 2024, 10:30 PM