Skip to content

Instantly share code, notes, and snippets.

@11philip22
Last active February 4, 2020 08:30
Show Gist options
  • Save 11philip22/1c3f3a3c4d16478fd2bc80aa9fd24282 to your computer and use it in GitHub Desktop.
Save 11philip22/1c3f3a3c4d16478fd2bc80aa9fd24282 to your computer and use it in GitHub Desktop.
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=VMware/"
sudo /usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmmon)
sudo /usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmnet)
sudo mokutil --import MOK.der
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment