-
Notifications
You must be signed in to change notification settings - Fork 28
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
Consider using tss2_ tools in tpm2-tools for tpm2-attest script #40
Comments
One of the goals is to run in (the man pages also refer me to the |
The actual installed manpages are just pandoc converted from markdown, so this The -T, --tcti or TPM2TOOLS_TCTI can all embed the same tcti information string to control the connection. You can also symlink libtss2-tcti-default.so to the device tcti libtss2-tcti-device.so.0. man 3 Tss2_TctiLdr_Initialize describes this in part. You can at configure time in tpm2-tss use the configure option
Is that what that header is saying? One if for man and one is for info? I've been searching for why its laid out like that but never found anything authoritative or is linked like that somewhere else? |
Also I think since like 4.12, kernel versions also have /dev/tpmrm0 as well, which is an in-kernel resource manager. Note you can't use sessions across command invocations |
FYI you mention that getting the quote is slow, you could generate an EC key. EC key generation is much faster than RSA. |
Thanks for the suggestion about ECC keys -- they are indeed much faster to create! #41 is for that enhancement, which is currently blocked on All of the The texinfo footer shows up at the bottom of the
|
Yeah the tss2_tools use FAPI, which is configured differently. Its essentially a global state with a config file. That config file can be specified via: The default is the sysconfigdir: #define DEFAULT_CONFIG_FILE (SYSCONFDIR "/tpm2-tss/fapi-config.json")
My system has it installed at: In that file: {
"profile_name": "P_RSA2048SHA256",
"profile_dir": "/usr/local/etc/tpm2-tss/fapi-profiles/",
"user_dir": "~/.local/share/tpm2-tss/user/keystore",
"system_dir": "/usr/local/var/lib/tpm2-tss/system/keystore",
"tcti": "",
"system_pcrs" : [],
"log_dir" : "/usr/local/var/run/tpm2-tss/eventlog/"
} In there you can set the tcti. I think it just takes the normal TCTI specifiers. You need to call tss2_provision first, and then you can start using the tss2_* tools. Ill fix that tpm2_checkqoute is hardcoded to RSA, thanks for that issue: I noticed that the other day scrolling through stuff. tss2_verifyquote seems to also do what you want if you can get it working with the tss2 tools. |
@williamcroberts Hmm, so, |
Not every command has the |
patches are always welcome |
I need to clone myself, slow the rest of the world so I can do more. Anyways, But what about |
The tss2_ tools use the Feature API, which is designed with simplicity at its core. You may consider using it in tpm2-attest:
Andreas over at our project might be able to give you more reasons and perhaps some help flipping the script over.
The text was updated successfully, but these errors were encountered: