Skip to content

Instantly share code, notes, and snippets.

@jgmel
Created March 21, 2018 20:47
Show Gist options
  • Save jgmel/53fd1e8a7b1908da992c681532f16300 to your computer and use it in GitHub Desktop.
Save jgmel/53fd1e8a7b1908da992c681532f16300 to your computer and use it in GitHub Desktop.
# info https://kb.vmware.com/s/article/2146460
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=VMware/"
/usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmmon)
/usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmnet)
mokutil --import MOK.der
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment