Boot failure with " error: ../../grub-core/kern/efi/sb.c:182:bad shim signature."

Solution Verified - Updated -

Issue

  • Boot fails after test kernel installation.
  error: ../../grub-core/kern/efi/sb.c:182:bad shim signature.
  • The issue can also be:
error: ../../grub-core/loader/i386/efi/linux.c:385: (hd0,gpt2)/vmlinuz-XXX.x86_64 has invalid signature.
error: ../../grub-core/loader/i386/efi/linux.c:256: you need to load the kernel first

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux 10
  • Secure boot
  • shim-x64-16.1-5.el9.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content