Skip to content

Instantly share code, notes, and snippets.

@d1b
Created August 29, 2021 07:46
Show Gist options
  • Save d1b/bea14c3c623b17cfbe9b1c113405aa8a to your computer and use it in GitHub Desktop.
Save d1b/bea14c3c623b17cfbe9b1c113405aa8a to your computer and use it in GitHub Desktop.
moku-setup
#!/bin/bash
# https://bugs.launchpad.net/oem-priority/+bug/1939565
cd /var/lib/shim-signed/mok/
openssl genrsa -out MOK.priv 2048
openssl req -new -x509 -sha256 -subj '/CN=Example-key' -key MOK.priv -out MOK.pem -days 1231111
openssl x509 -in MOK.pem -inform PEM -out MOK.der -outform DER -days 1231111
mokutil --import MOK.der
cd -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment