dasharo-issues icon indicating copy to clipboard operation
dasharo-issues copied to clipboard

Generate signing keys using OpenSSL utilities

Open BeataZdunczyk opened this issue 2 years ago • 1 comments

Brief summary

Utilize OpenSSL command line utilities to generate the necessary signing keys for the capsule update process.

Additional context Create a list of supported algorithms and key sizes with links to source code or edk2 documentation, along with OpenSSL commands to create those.

BeataZdunczyk avatar Apr 17 '24 15:04 BeataZdunczyk

No Jira task for this, or is it part of some task named differently?

Update: I found it.

SergiiDmytruk avatar Aug 12 '24 16:08 SergiiDmytruk

coreboot PR (capsule.sh update): https://github.com/Dasharo/coreboot/pull/552 docs PR: https://github.com/Dasharo/docs/pull/885

SergiiDmytruk avatar Aug 24 '24 17:08 SergiiDmytruk

I have managed to create all the required certificates using the documentation and to create a capsule. I can not test if using the generated keys in capsule.sh make would work because error: current board configuration lacks support of update capsules in the case of building for either qemu or vp66xx. Signing the capsule and verifying the signature would be the last step of verifying if everything works. Do you know any device which supports the capsules or if I can easily change it in the config?

philipanda avatar Aug 30 '24 10:08 philipanda

I have been able to sign the capsule using the generated keys using capsule.sh make and decode and verify it using payloads/external/edk2/workspace/Dasharo/BaseTools/BinWrappers/PosixLike/GenerateCapsule which probably means that the instructions are valid. The only issue is with selecting the CA to be used by openssl which looks for the CA at /etc/ssl/pki/CA by default on my and @JanPrusinowski's systems.

philipanda avatar Aug 30 '24 11:08 philipanda

Here are all the artifacts I have generated in the process. results.zip

philipanda avatar Aug 30 '24 11:08 philipanda