vathpela / efitools Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
/usr/bin/cert-to-efi-sig-list
The above is from,
efitools-1.9.2-1.
For secure boot of machine, it is necessary to load the EFI dbs i.e. PK, KEK and allowed database.
For loading PK for example, first the cert needs to be converted into esl
#cert-to-efi-sig-list -g "$(uuidgen)" PK.crt PK.esl
and then self sign in case of PK.
#sign-efi-sig-list -k PK.key -c PK.crt PK PK.esl PK.auth
and update PK db later with,
#efi-updatevar -f PK.auth PK
So, in this case second step i.e. sign-efi-sig-list needs private key in plain text format.
But if the key has to be retrieved from TPM, in that case it shall be retrieved as encrypted key.
Does efitools support reading key from TPM? Was there any such request? can that enhancement be done?
For secure boot the below page can be referred for more infromation.
https://wiki.gentoo.org/wiki/User:Sakaki/Sakaki%27s_EFI_Install_Guide/Configuring_Secure_Boot
I'm trying to push efitools to Fedora repositories. Got some notes during my review:
efitools.x86_64: E: call-to-mktemp /usr/bin/efi-readvar
efitools.x86_64: E: call-to-mktemp /usr/bin/efi-updatevar
should be reported to upstream.
Line 40 in 28687de
I hope this can be fixed.
build failed
and the log is:
LockDown.c:44:10: error: ‘KEK_auth_len’ undeclared (first use in this function); did you mean ‘DB_auth_len’?
sign-efi-sig-list k PK.key -c PK.crt PK PK.esl PK.auth
followed by efi-update-var -f PK.auth PK
writes fine, but when I try to use the detached signature method, I get Cannot write to PK, wrong filesystem permissions
. I have date formatted as 2020-06-26 08:19:12
, run sign-efi-sig-list -t "$DATE" -o PK PK.esl PK.forsig
, run openssl smime -noattr -sign -binary -in PK.forsig -text -out PK.signed -signer PK.crt -inkey PK.key -outform DER -md sha256
followed by sign-efi-sig-list -i PK.signed -t "$DATE" PK PK.esl PK.auth
.
Hi,
Would it be possible to hardwire a network location and have the PreLoader look for the chain file via http or tftp?
It works fine from a bootable cd or usb with an actual esp partition but fails when loading directly over pxe.
The preloader always returns a file not found error when executed over pxe looking for the chain file even when it exists.
usb\cd : shim(signed by microsoft) -> preloader(mok key added to db)-> chained file(ipxe\grub) -> works
pxe: shim(signed by microsoft) -> preloader(mok key added to db) -> chained file(ipxe\grub) -> not working: unable to find and load chain file
shim(signed by microsoft) -> self signed chained file(ipxe\grub) (mok key added to db) -> chain file properly loads but is unable to boot anything even official trusted efi binaries signed by microsoft\fedora\ubuntu etc that are known to work : security protocol fails, invalid parameter errors which is why the preloader is needed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.