Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to enable the module in SecureBoot mode Centos 9 #74

Open
1muratbulbul opened this issue Dec 12, 2024 · 0 comments
Open

Unable to enable the module in SecureBoot mode Centos 9 #74

1muratbulbul opened this issue Dec 12, 2024 · 0 comments

Comments

@1muratbulbul
Copy link

1muratbulbul commented Dec 12, 2024

For the module to work in SecureBoot mode, the signer key must be added to the enrollment list. Can this situation be overcome by using another method(s) other than disabling SecureBoot or adding the self-signed generated key to the enrollment list (requires further operations)?

My workaround:
Platform: Centos Stream 9
[Before Module Installation]

new kernel configuration signing key

$ cd /lib/modules/$(uname -r)/build/certs
$  openssl req -new -x509 -newkey rsa:2048 -keyout signing_key.pem -out signing_key.x509 -nodes -days 3650 -subj "/CN=Custom Kernel Module Signing"
$  openssl x509 -in signing_key.x509 -outform DER -out signing_key.der

import new key to enrollment list using mokutil

$  mokutil --import signing_key.der <<EOF
custompassword
custompassword
EOF

display imported key to be added to enrollment list

$ mokutil --list-new

Reboot and Complete Enrollment

$ reboot

During boot:
Select [Enroll MOK] and confirm the enrollment by entering the password you provided during the import.

Verify Enrollment: After rebooting, verify that the certificate has been enrolled correctly

$ mokutil --list-enrolled

Then, you can install [xt_tls] module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant