# kernel-yny-keys: key material for kernel-yny kernel signatures # # Ships both halves of the kernel-yny signing key pair: # - kernel-yny-signing.crt / .der : public certificate (sbverify, MOK enrollment) # - kernel-yny-signing.pem : PEM bundle with the PRIVATE KEY + certificate # # ⚠️ The .pem contains a PRIVATE KEY. It is installed 0600 root:root so that # kernel/module re-signing and out-of-tree builds can be done on this # machine. It is not a new secret: the same key already ships as Source1 # of the kernel SRPM (public on COPR). Never reuse it for anything else. # # The key pair was generated from the kgpg identity # Ye Ningyuan Name: kernel-yny-keys Version: 1.0 Release: 2%{?dist} Summary: Key material (certificate + signing key) for kernel-yny signatures License: GPL-2.0-only URL: https://copr.fedorainfracloud.org/coprs/chinese-yening/fedora-yny/ BuildArch: noarch Source0: kernel-yny-signing.crt Source1: kernel-yny-signing.der Source2: kernel-yny-signing.pem %description Key material used to verify (and, locally, produce) signatures on the kernel-yny kernel image and its modules. Installed files: %{_sysconfdir}/pki/kernel-yny/kernel-yny-signing.crt public certificate (PEM) %{_sysconfdir}/pki/kernel-yny/kernel-yny-signing.der public certificate (DER) %{_sysconfdir}/pki/kernel-yny/kernel-yny-signing.pem private key + certificate (0600 root) The matching private key signs: - vmlinuz (PE/EFI signature, sbsign) - all in-tree modules (CONFIG_MODULE_SIG_ALL) in the kernel-yny build pipeline. Usage: - Verify kernel image: sbverify --cert %{_sysconfdir}/pki/kernel-yny/kernel-yny-signing.crt /boot/vmlinuz-* - Verify a module: modinfo -F signer /path/to/module.ko - Sign an out-of-tree module (local): /usr/src/kernels//scripts/sign-file sha512 \ %{_sysconfdir}/pki/kernel-yny/kernel-yny-signing.pem \ %{_sysconfdir}/pki/kernel-yny/kernel-yny-signing.pem module.ko - Secure Boot / MOK: sudo mokutil --import %{_sysconfdir}/pki/kernel-yny/kernel-yny-signing.der (reboot and enroll in the MOK manager screen) ⚠️ kernel-yny-signing.pem contains a PRIVATE KEY (0600, owner root). It ships here because the key is already published as the kernel SRPM's Source1, so this only makes it available as an installed file. %install mkdir -p %{buildroot}%{_sysconfdir}/pki/kernel-yny install -m 0644 %{SOURCE0} %{buildroot}%{_sysconfdir}/pki/kernel-yny/kernel-yny-signing.crt install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pki/kernel-yny/kernel-yny-signing.der install -m 0600 %{SOURCE2} %{buildroot}%{_sysconfdir}/pki/kernel-yny/kernel-yny-signing.pem %files %dir %{_sysconfdir}/pki/kernel-yny %{_sysconfdir}/pki/kernel-yny/kernel-yny-signing.crt %{_sysconfdir}/pki/kernel-yny/kernel-yny-signing.der %attr(0600,root,root) %{_sysconfdir}/pki/kernel-yny/kernel-yny-signing.pem %changelog * Tue Nov 24 2026 kernel-yny-builder - 1.0-2 - Ship the signing key PEM bundle as kernel-yny-signing.pem (0600 root:root): it contains both the RSA-4096 private key and the matching certificate, so kernel/module re-signing and out-of-tree module builds can be done on the machine without digging the key out of the SRPM. - Point URL at the merged fedora-yny COPR project. - The private key is already public via the kernel SRPM (Source1); this does not change the exposure, only makes it available as an installed file. * Sun Aug 16 2026 Ye Ningyuan - 1.0-1 - Initial release: public key for kernel-yny kernel signing