Skip to content

Instantly share code, notes, and snippets.

View tuxbotix's full-sized avatar

Darshana Sanjeewan Adikari tuxbotix

View GitHub Profile
@tuxbotix
tuxbotix / create-efi-keys.sh
Created July 8, 2018 19:03 — forked from Era-Dorta/create-efi-keys.sh
Sign kernel modules on Ubuntu, useful for Nvidia drivers in UEFI system
# VERY IMPORTANT! After each kernel update or dkms rebuild the modules must be signed again with the script
# ~/.ssl/sign-all-modules.sh
# Place all files in ~/.ssl folder
mkdir ~/.ssl
cd ~/.ssl
# Generate custom keys with openssl
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -subj "/CN=Owner/"