Commit 722b5699 authored by Ophélie Gagnard's avatar Ophélie Gagnard

WIP: Makefile: Add key generation.

parent aab80458
......@@ -103,17 +103,24 @@ uefi-keys/:
rm -f build/uefi-keys/mkkeys.sh
mv build/uefi-keys/* KEYS_to-save-elswhere-and-shred/
# TO USE YOUR OWN KEYS (recommanded), CREATE THE uefi-keys DIRECTORY *BEFORE* USING MAKE
# IMPORTANT: TO USE YOUR OWN KEYS (recommanded), CREATE THE uefi-keys/ DIRECTORY *BEFORE* USING MAKE
# create the directory AT THE ROOT OF THE PROJECT (i.e. in the same place than this Makefile: metadata-collect-agent/uefi-keys/)
generate-keys: uefi-keys/
install-keys:
install -d /etc/uefi-keys/
cp uefi-keys/DB.cer /etc/uefi-keys/db.cer
cp uefi-keys/DB.crt /etc/uefi-keys/db.crt
cp uefi-keys/DB.key /etc/uefi-keys/db.key
uninstall-keys:
shred -ufz /etc/uefi-keys/*
rm -rf /etc/uefi-keys/
clean-keys:
shred -uf uefi-keys/*
clean-keys: uninstall-keys
shred -ufz uefi-keys/*
rm -rf uefi-keys/
shred -uf KEYS_to-save-elsewhere-and-shred/*
shred -ufz KEYS_to-save-elsewhere-and-shred/*
rm -rf KEYS_to-save-elsewhere-and-shred/*
clean: clean-no-dracut clean-dracut clean-keys
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment