Fix uefi key generator.

This commit is contained in:
Captain ALM 2024-08-03 02:10:33 +01:00
parent e303ba23a1
commit fc7f0b5c75
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

View File

@ -16,6 +16,11 @@ else
rm -f KEK-vmpriv.key;
rm -f KEK-vm.esl;
rm -f KEK-vm.auth;
rm -f db-vm.der;
rm -f db-vm.crt;
rm -f db-vmpriv.key;
rm -f db-vm.esl;
rm -f db-vm.auth;
uuidgen --random > PK-GUID;
openssl req -config uefi_pk-openssl.cnf -newkey rsa:2048 -nodes -keyout PK-vmpriv.key -x509 -days 36500 -out PK-vm.crt;
openssl x509 -in PK-vm.crt -outform der -out PK-vm.der;