Mok management will not load on boot

12,473

I have the same issue on a Taichi X370 motherboard and 1050Ti GPU with the MOK management menus not being visible. I tried enrolling a key in a vm just to see how the menu layout looked.

Press down once and Enter for Enroll

Press down once and Enter for Continue

Press down once and Enter for Yes

Type in password and Enter to accept

Press Enter to Reboot

With the above I could blindly enroll a new key in MOK management.

Share:
12,473

Related videos on Youtube

Perse95
Author by

Perse95

Updated on September 18, 2022

Comments

  • Perse95
    Perse95 over 1 year

    To preface: I'm not looking to disable secure boot as I have a second hard drive with Windows 10 installed. The two OSes exist on two separate drives and are isolated from each other during runtime. Windows Boot Manager and GRUB exist on their own respective drives and are completely unaware of each other.

    The relevant system configuration is:

    • OS: Ubuntu 17.04 - Kernel: 4.10.0-32-generic
    • Motherboard: Asrock Taichi X99
    • GPU: GTX 1080

    So, I've been trying to use mokutil to enroll my own certificate so I can use it to load signed Nvidia drivers, but I've run into troubles with getting the whole procedure to work.

    So the steps I took were:

    1. Enable secure boot support in Ubuntu.
    2. Create an x509 certificate with openssl.
    3. Ran mokutil --enable-validation and entered a password.
    4. Used mokutil --import to add the newly created certificate to the secure boot keys list.
    5. Used the signing script under the efi directory to sign kernel modules using the private key and certificate pair I created.
    6. Rebooted the system.
    7. Selected the boot entry with shimx64.efi
    8. Pressed key to enter mok management
    9. Got stuck on this screen:

    MOK Management proceed screen on boot

    • Rod Smith
      Rod Smith over 6 years
      When you say you "got stuck," what happens when you press a key? Is the keypress ignored and the countdown continues? Does the system hang? Does the system reboot? Do you see an error message? Something else?
    • Perse95
      Perse95 over 6 years
      @RodSmith The countdown stops, effectively MOK Management opens, there just isn't any output to the display of the interface. Based on the screenshots of what should be there, pressing enter once continues boot. I managed to enroll a key by pressing keys and entering the password according to screenshots, but there is no visual display of anything.
    • Rod Smith
      Rod Smith over 6 years
      This sounds like an EFI video driver problem. You mention an Nvidia GPU. Is this on a plug-in card, or built into the motherboard? If the former, you might try unplugging the card, just to enroll the key. If the latter, you could poke around in the firmware settings for relevant video options, and you might want to report it as a bug to the motherboard manufacturer.
    • Perse95
      Perse95 over 6 years
      It's a plug-in card, but I have no integrated graphics nor another card that would also work to see if it's a motherboard or video card driver issue. I think I will report it tho, it seems like a very annoying bug.
    • Rod Smith
      Rod Smith over 6 years
      Ah, I see. Be sure that the card provides EFI firmware, then. It could be that the card was designed for BIOS-based computers and is relying on the computer's CSM (BIOS compatibility layer), which might be flaking out a bit, particularly when you're trying to do something related to Secure Boot. Some manufacturers provide video card firmware updates to enable EFI compatibility, so you might look for that, too.
    • Perse95
      Perse95 over 6 years
      It should as it is an EVGA card that is, from my research, uefi compliant. It might also be a fluke with the whole system composition, just the right combination of parts to mess things up. I'll see if Asrock support has anything to say, maybe they've encountered this before.
  • tiguchi
    tiguchi over 4 years
    I ran into exactly the same problem. Same main board but an RTX 2080 GPU. You answer here is a life saver. However I kept on hitting into the following issue: my password was getting rejected. I kept on seeing Invalid character in the middle of a black screen. After a bit of research I found several forum posts of people speculating that the MOK management password cannot be longer than 4 characters, and must not contain digits. So I simply set it to pass. Retried again, and finally I got my key enrolled
  • David
    David over 2 years
    If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review
  • Sandor Semsey
    Sandor Semsey over 2 years
    That's fine, but now I'm confused a bit. I don't have a question as I've found the solution (for my case). I decided to put a new answer, as the accepted answer is more like a workaround (which is great actually), but not a real solution. I still like to share this information, what would be the correct way for that?