MOKUTIL(1)
π mokutil π
okay bestie, meet mokutil π§ It's the General Commands Manual tool for manipulating machine owner keys, aka MOKs. π
β¨ NAME β¨
mokutil β utility to manipulate machine owner keys π
πΈ SYNOPSIS πΈ
mokutil [--list-enrolled | -l]
([--mokx | -X])
mokutil [--list-new | -N]
([--mokx | -X])
mokutil [--list-delete | -D]
([--mokx | -X])
mokutil [--import keylist| -i keylist]
([--hash-file hashfile | -f hashfile] | [--root-pw | -P] |
[--mokx | -X] | [--ca-check] | [--ignore-keyring])
mokutil [--delete keylist | -d keylist]
([--hash-file hashfile | -f hashfile] | [--root-pw | -P] |
[--mokx |- X])
mokutil [--revoke-import]
([--mokx | -X])
mokutil [--revoke-delete]
([--mokx | -X])
mokutil [--export | -x]
mokutil [--password | -p]
([--hash-file hashfile | -f hashfile] | [--root-pw | -P])
mokutil [--clear-password | -c]
mokutil [--disable-validation]
mokutil [--enable-validation]
mokutil [--sb-state]
mokutil [--test-key keyfile | -t keyfile]
([--mokx | -X] | [--ca-check] | [--ignore-keyring])
mokutil [--reset]
([--hash-file hashfile | -f hashfile] | [--root-pw | -P] |
[--mok | -X])
mokutil [--generate-hash=password | -gpassword]
mokutil [--ignore-db]
mokutil [--use-db]
mokutil [--import-hash hash]
([--hash-file hashfile | -f hashfile] | [--root-pw | -P] |
[--mokx | -X])
mokutil [--delete-hash hash]
([--hash-file hashfile | -f hashfile] | [--root-pw | -P] |
[--mokx | -X])
mokutil [--set-verbosity (true | false)]
mokutil [--set-fallback-verbosity (true | false)]
mokutil [--set-fallback-noreboot (true | false)]
mokutil [--pk]
mokutil [--kek]
mokutil [--db]
mokutil [--dbx]
mokutil [--list-sbat-revocations]
mokutil [--set-sbat-policy (latest | automatic | delete)]
mokutil [--timeout -1,0..0x7fff]
mokutil [--trust-mok]
mokutil [--untrust-mok]
π¦ DESCRIPTION π¦
So basically, mokutil is the tool you use to import or delete the machine owner keys (MOK) stored in the database of shim. It's giving key management energy. πβ¨
π OPTIONS π
-l,--list-enrolledβ show the keys that are already stored in the database π-N,--list-newβ list the keys that are waiting to be enrolled π±-D,--list-deleteβ list the keys that are set to be deleted ποΈ-i,--importβ grab the files you list and build an enrolling request for shim. The files have to be in DER format, no exceptions π-d,--deleteβ grab the files you list and build a deleting request for shim. These also have to be in DER format π ββοΈ--revoke-importβ cancel the current import request (MokNew) π--revoke-deleteβ cancel the current delete request (MokDel) π-x,--exportβ export the keys stored in MokListRT π€-p,--passwordβ set up the password for MokManager (MokPW) π-c,--clear-passwordβ clear the password for MokManager (MokPW) π§Ή--disable-validationβ disable the validation process in shim π ββοΈ--enable-validationβ enable the validation process in shim β--sb-stateβ show the SecureBoot state π-t,--test-keyβ check whether the key is enrolled or not π--resetβ reset the MOK list π«--generate-hashβ generate the password hash π§--hash-fileβ use the password hash from a specific file π-P,--root-pwβ use the root password hash from/etc/shadowπ--ignore-dbβ tell shim to not use the keys in db to verify EFI images π--use-dbβ tell shim to use the keys in db to verify EFI images (this is the default, bestie) π-X,--mokxβ work with the MOK blacklist (MOKX) instead of the MOK list π«--import-hashβ create an enrolling request for the hash of a key in DER format. Heads up, this is NOT the password hash! π ββοΈ--delete-hashβ create a deleting request for the hash of a key in DER format. Again, this is NOT the password hash! π ββοΈ--set-verbosityβ set the SHIM_VERBOSE so shim can be more or less chatty π£οΈ--set-fallback-verbosityβ set the FALLBACK_VERBOSE so fallback can be more or less chatty π£οΈ--set-fallback-norebootβ set the FB_NO_REBOOT so fallback doesn't automatically reboot the system π--pkβ list the keys in the public Platform Key (PK) π°--kekβ list the keys in the Key Exchange Key Signature database (KEK) ποΈ--dbβ list the keys in the secure boot signature store (db) βοΈ--dbxβ list the keys in the secure boot blacklist signature store (dbx) π·--list-sbat-revocationsβ list the entries in the Secure Boot Advanced Targeting store (SBAT) π―--set-sbat-policy(latest|automatic) β set the SbatPolicy UEFI Variable so shim applies either the latest or the automatic SBAT revocations. If UEFI Secure Boot is disabled, shim will automatically delete the SBAT revocations π§Ή--set-ssp-policy(latest|automatic|delete) β set the SspPolicy UEFI Variable so shim applies either the latest or the automatic Windows SkuSiPolicy to manage bootmgr revocations. These are non-native revocations, so shim won't automatically delete them. If you need them gone,spp-policycan be set todeletewhen Secure Boot is disabled. The delete policy is non-persistent, so keep that in mind π«Ά--timeoutβ set the timeout for the MOK prompt β°--ca-checkβ check whether the CA of the given key is already enrolled or blocked in the key databases π΅οΈββοΈ--ignore-keyringβ skip the kernel builtin trusted keys keyring check when enrolling a key into MokList π--trust-mokβ trust MOK keys within the kernel keyring π--untrust-mokβ don't trust MOK keys within the kernel keyring π₯
That's the whole manual, bestie! ππ Go be a main character with your keys. π β¨
π¦ where this page comes from
- alpine 3.24: mokutil-doc 0.7.2-r0 Β· GPL-3.0-or-later
- arch rolling: mokutil 0.7.2-2 Β· GPL-3.0-or-later
- debian trixie: mokutil 0.7.2-1 Β· GPL-3.0-or-later WITH OpenSSL exception
- fedora 43: mokutil 2:0.7.2-2.fc43 Β· GPL-3.0-or-later
- fedora 44: mokutil 2:0.7.2-3.fc44 Β· GPL-3.0-or-later
- nixos 26.05: mokutil 0.7.2
- nixpkgs unstable: mokutil 0.7.2
- opensuse-leap 16.0: mokutil 0.7.2-160000.2.2 Β· GPL-3.0-only
- opensuse-leap 16.0: mokutil 0.7.2-160000.2.2 Β· GPL-3.0-only
- opensuse-leap 16.0: mokutil 0.7.2-160000.2.2 Β· GPL-3.0-only
- ubuntu questing: mokutil 0.7.2-1 Β· GPL-3.0-or-later WITH OpenSSL exception
- ubuntu resolute: mokutil 0.7.2-2 Β· GPL-3.0-or-later WITH OpenSSL exception
- ubuntu stonking: mokutil 0.7.2-2build1 Β· GPL-3.0-or-later WITH OpenSSL exception
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms