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

Need help install tpm2-openssl and use tpm2-openssl for create certificate. #111

Open
amaranthjinn opened this issue May 3, 2024 · 0 comments

Comments

@amaranthjinn
Copy link

I need help with installing tpm2-openssl on my Debian machine (Debian 13).
I followed the instruction to:
apt install tpm2-openssl tpm2-tools tpm2-abrmd libtss2-tcti-tabrmd0

but got error:

Package tpm2-abrmd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

I did apt update and upgrade, and still doesn't seem to be able to grab the missing dependencies.
I prefer not to make and build the packages if that's possible, any suggestions on how I can get this to work?

I want to self-sign a TPM generated key (the public key of the pair) to output a x.509 certificate.
I think I can leverage tpm2-openssl for this:

openssl req -provider tpm2 -provider default -propquery '?provider=tpm2' -x509 -subj "/C=GB/CN=foo" -key key_public.pem -out key_cert.pem

where I already created the key in TPM, and get the public key in .pem format. Is above cmd the right usage or I missed something?

Thanks a lot for help! I'm new to openssl and TPM, still ramping up on the tools.

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

1 participant