Skip to content

Instantly share code, notes, and snippets.

@hongsolo9
hongsolo9 / selfsign-vmware-modules.sh
Created July 15, 2022 02:16 — forked from cezarignat/selfsign-vmware-modules.sh
Self sign the required modules, vmmon and vmnet, for VMWARE to work with SecureBoot on, Ubuntu 17
#!/bin/sh
#Asking for sudo because the script needs it almost all the time
sudo echo -n
#Creating the key used to sign the two modules
echo 'Preparing vmware key...'
openssl req -new -x509 -newkey rsa:2048 -keyout VMWAREKEY.priv -outform DER -out VMWAREKEY.der -nodes -days 36500 -subj "/CN=VMware/"
#Sign the modules