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

loading of private key in TPM using c++ Apis #3372

Closed
sumanth797 opened this issue Mar 22, 2024 · 1 comment
Closed

loading of private key in TPM using c++ Apis #3372

sumanth797 opened this issue Mar 22, 2024 · 1 comment

Comments

@sumanth797
Copy link

sumanth797 commented Mar 22, 2024

Hi,

Can you give me the C++ Api implementation for the below commands with authentication, any examples?

tpm2 createprimary -C e -G rsa2048 -a 'restricted|decrypt|fixedtpm|fixedparent|sensitivedataorigin|userwithauth' -c endorsementkey.ctx -P hpasswd -p ctxtpasswd

tpm2_import -C endorsementkey.ctx -G rsa -i private.pem -u key.pub -r key.priv -P ctxtpwd -p vpasswd

tpm2_load -C endorsementkey.ctx -u key.pub -r key.priv -c vkey.ctx -P vpasswd

tpm2_evictcontrol -C o -c vkey.ctx 0x81010001 -P spasswd

Thanks in Advance

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