From: CHOTARD Clement <clement.chotard at thalesgroup.com>
To: tpm2@lists.01.org
Subject: [tpm2] Loading certificate inside TPM
Date: Thu, 09 Jul 2020 13:48:41 +0000 [thread overview]
Message-ID: <b50a2d94cc92409fa5bed6acf7453fe3@thalesgroup.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 522 bytes --]
Hi,
I am trying to load a certificate in the TPM through this command:
tpm2pkcs11-tool -l --pin $PIN --write-object "$device_dir/client.der" --type cert --id 01 --label devicecert
I have tried with both .pem and .der format but it triggers the following error:
Using slot 0 with a present token (0x1)
ERROR: Expected attribute CKA_KEY_TYPE
error: PKCS11 function C_CreateObject failed: rv = CKR_TEMPLATE_INCOMPLETE (0xd0)
Aborting.
Is it a bug or the feature is yet to be implemented?
Thanks,
Clement
[-- Attachment #2: attachment.htm --]
[-- Type: text/html, Size: 3437 bytes --]
reply other threads:[~2020-07-09 13:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b50a2d94cc92409fa5bed6acf7453fe3@thalesgroup.com \
--to=tpm2@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox