Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openssl: Could not find private key of key from PK.key (TPM) #397

Open
m00nwtchr opened this issue Nov 1, 2024 · 1 comment
Open

openssl: Could not find private key of key from PK.key (TPM) #397

m00nwtchr opened this issue Nov 1, 2024 · 1 comment

Comments

@m00nwtchr
Copy link

m00nwtchr commented Nov 1, 2024

I'm trying to integrate sbctl with systemd-measure, as it would be nice if I could re-use the sbctl keys to sign the PCR policy as well. However, currently I'm stuck on trying to read the tpm-shielded private Platform Key file using openssl:

# openssl pkey -provider tpm2 -provider base -in PK.key -pubout -out testkey.pub
Could not find private key of key from PK.key
809BB60538750000:error:1608010C:STORE routines:ossl_store_handle_load_result:unsupported:crypto/store/store_result.c:151:

I confirmed that this command works with keys I've generated myself, but I can't get it to work with the sbctl created keys. (Except for normal file keys)

@Foxboron
Copy link
Owner

Foxboron commented Nov 1, 2024

Probably this issue here: tpm2-software/tpm2-openssl#120

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants