Skip to content

tpm2_getekcertificate: add option --x509-trunc#3481

Closed
saurontech wants to merge 2 commits into
tpm2-software:masterfrom
saurontech:x509_trunc
Closed

tpm2_getekcertificate: add option --x509-trunc#3481
saurontech wants to merge 2 commits into
tpm2-software:masterfrom
saurontech:x509_trunc

Conversation

@saurontech
Copy link
Copy Markdown
Contributor

New option to handle x509 DER with trailing data

ST micro's ST33HTPHF2ENIST TPM creates NIST P-256 ECC and RSA EK certificates with 0xff data padded to a fixed 1600 bytes length. The option "--x509-trunc" or "-t" parses the output of "nv_read" with a X509 parser and truncates the trailing data. This makes the output formate more accessable to GOLANG's X509.ParseCertificate(). Details about this issue can be found at: #3474

Signed-off-by: Samuel Cheng samuelogre@gmail.com

New option to handle x509 DER with trailing data

ST micro's ST33HTPHF2ENIST TPM creates NIST P-256 ECC and RSA EK certificates with 0xff data padded to a fixed 1600 bytes length.
The option "--x509-trunc" or "-t" parses the output of "nv_read" with a X509 parser and truncates the trailing data.
This makes the output formate more accessable to GOLANG's X509.ParseCertificate().
Details about this issue can be found at: tpm2-software#3474

Signed-off-by: Samuel Cheng <samuelogre@gmail.com>
@JuergenReppSIT
Copy link
Copy Markdown
Member

@saurontech lgtm. Could you please add the new option to ./man/tpm2_getekcertificate.1.md?

Add documentation for option "-t", "--x509-trunc"
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

Successfully merging this pull request may close these issues.

2 participants