Issues with nvidia driver kernel and secure boot keys

I finally fixed a problem I have been having with GPU driver in fedora for quite some time.
But I now need to sign my new fedora kernel for secure boot to keep my Nvidia proprietary drivers.
So I followed the rpm fusion tutorial for signing the key, but the directory and key does not exist on my laptop! I am very new to secure boot and key, and have no clue what to do. SO if you have a answer, which I hope someone does, please talk to me like a beginner. Thanks!

Hello to ask fedora and please follow those links for doing it.

Good luck.

I am trying to install the driver and sign it with my key, but it wants the file path. I do not know the path…

You do not need to sign the kernel. You need to carefully follow steps 1-6 in the link given in post 2 above to create a key & use mokutil to import that key into the bios.

Steps 7 and 8 are not required and you replace them with steps 1-4 below.

Once the key is imported into the bios then you need to worry about creating a signed nvidia driver module that can be loaded.

If you already have installed the nvidia drivers from rpmfusion and the module will not load because it is not signed then there are a couple recovery steps required.

  1. dnf remove *nvidia*
    which will remove all the old unsigned nvidia packages.
  2. dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda
    which will pull in and install all the latest nvidia packages.
  3. wait 5 minutes for the modules to be automatically built and signed.
  4. reboot

As shown in the linked blog it is relatively easy but following the steps exactly is required.