Created
August 29, 2021 07:46
-
-
Save d1b/bea14c3c623b17cfbe9b1c113405aa8a to your computer and use it in GitHub Desktop.
moku-setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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