https://github.com/hf/openrazer-sign
Sign OpenRazer drivers for UEFI on Fedora.
https://github.com/hf/openrazer-sign
Last synced: about 1 year ago
JSON representation
Sign OpenRazer drivers for UEFI on Fedora.
- Host: GitHub
- URL: https://github.com/hf/openrazer-sign
- Owner: hf
- Created: 2018-09-15T09:37:33.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-07-18T09:13:28.000Z (almost 2 years ago)
- Last Synced: 2025-03-28T12:04:14.042Z (over 1 year ago)
- Language: Shell
- Size: 1000 Bytes
- Stars: 7
- Watchers: 0
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenRazer Kernel Module Signer
It's a simple script that signs [OpenRazer](https://openrazer.github.io/) drivers
on Fedora, so they'll be usable with UEFI Secure Boot.
## Setup
Follow these steps before signing:
1. Modify `openssl.cnf` to match your name, etc.
2. Run
```shell
openssl req -config ./openssl.cnf \
-new -x509 -newkey rsa:2048 \
-nodes -days 36500 -outform DER \
-keyout "MOK.priv" \
-out "MOK.der"
```
3. `sudo mokutil --import MOK.der`
4. Reboot and import the key in EFI.
## Signing
First install the drivers however you like. Usually by `dnf install
openrazer-meta`. Then just run `sudo sh ./razer-sign.sh`. You have to do this
with every new kernel, sadly.
## Security
As you're importing a custom key into EFI, obviously you shouldn't just leave
it laying around on the internet. Back it up somewhere safe just in case.
## License
Public domain. Go wild.