Signing OpenRazer module SSL error: FFFFFFFF80000002:system library & 10000080:BIO routines

I am trying to sign the OpenRazer modules with a custom key so I can use secure boot. I have a script that does it, which produces this output:

+ /usr/src/kernels/6.13.12-200.fc41.x86_64/scripts/sign-file sha512 /home/yg/src/OpenRazer/MOK.priv /home/yg/src/OpenRazer/MOK.der razermouse.ko.xz
At main.c:302:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: crypto/bio/bss_file.c:75

I could not find anything about why this is happening.

What am I doing wrong here?

Is there a better way to automatically sign the OpenRazer drivers?

You are expected to use DKMS that builds and sings the modules:

# Set up DKMS
sudo dnf install dkms openssl
sudo dkms generate_mok
MOK_PASSWD="fedora"
sudo mokutil -i /var/lib/dkms/mok.pub << EOI
${MOK_PASSWD}
${MOK_PASSWD}
EOI
sudo systemctl reboot

# Set up drivers
sudo dnf install git-core
sudo git clone https://github.com/openrazer/openrazer.git \
/usr/src/openrazer-git
sudo sed -i -e '/^DEST_MODULE_LOCATION/s|/kernel/drivers/hid|/extra|' \
/usr/src/openrazer-git/install_files/dkms/dkms.conf
sudo ln -f -s -T install_files/dkms/dkms.conf \
/usr/src/openrazer-git/dkms.conf
sudo dkms install openrazer/git
sudo tee /etc/modules-load.d/openrazer.conf << EOF > /dev/null
razerkbd
razermouse
razerkraken
razeraccessory
EOF
sudo systemctl restart systemd-modules-load.service
1 Like

Thank you! This worked like a charm.

1 Like

Just an update…

New kernel downloaded and installed via dnf5, and the OpenRazer driver was automatically signed and works™.

Perfect! :tada: