Skip to content

Instantly share code, notes, and snippets.

@fepitre
Created August 6, 2024 08:39
Show Gist options
  • Save fepitre/7b51288206e26e1a8137050ae8500b67 to your computer and use it in GitHub Desktop.
Save fepitre/7b51288206e26e1a8137050ae8500b67 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -ex
rm -rf /etc/pki/pesign/*
mkdir -p /etc/pki/pesign
certutil -d /etc/pki/pesign -N --empty-password
efikeygen -d /etc/pki/pesign \
--ca --self-sign \
--nickname='Qubes OS UEFI CA' \
--common-name='CN=Qubes OS UEFI CA,OU=Qubes OS Certification Authority,O=Qubes OS Team,C=FR' \
--url='https://www.qubes-os.org' --serial=00
efikeygen -d /etc/pki/pesign \
--signer='Qubes OS UEFI CA' \
--nickname='Qubes OS UEFI CA' \
--common-name='CN=Qubes OS UEFI CA,OU=Qubes OS Certification Authority,O=Qubes OS Team,C=FR' \
--url='https://www.qubes-os.org' --serial=01 --kernel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment