* [tpm2] Re: RSA key pairs are gone when I reboot
@ 2019-12-03 16:59 Tadeusz Struk
0 siblings, 0 replies; 2+ messages in thread
From: Tadeusz Struk @ 2019-12-03 16:59 UTC (permalink / raw)
To: tpm2
[-- Attachment #1: Type: text/plain, Size: 205 bytes --]
On 12/3/19 7:54 AM, Frederick Gotham wrote:
> How do I store an RSA key pair persistently/permanently inside the TPM2 chip?
You can use tpm2_evictcontrol tool to make the key persistent.
--
Tadeusz
^ permalink raw reply [flat|nested] 2+ messages in thread
* [tpm2] Re: RSA key pairs are gone when I reboot
@ 2019-12-04 14:09 Roberts, William C
0 siblings, 0 replies; 2+ messages in thread
From: Roberts, William C @ 2019-12-04 14:09 UTC (permalink / raw)
To: tpm2
[-- Attachment #1: Type: text/plain, Size: 1606 bytes --]
> -----Original Message-----
> From: Tadeusz Struk [mailto:tadeusz.struk(a)intel.com]
> Sent: Tuesday, December 3, 2019 10:59 AM
> To: cauldwell.thomas(a)gmail.com; tpm2(a)lists.01.org
> Subject: [tpm2] Re: RSA key pairs are gone when I reboot
>
> On 12/3/19 7:54 AM, Frederick Gotham wrote:
> > How do I store an RSA key pair persistently/permanently inside the TPM2 chip?
>
> You can use tpm2_evictcontrol tool to make the key persistent.
Generally yes, but not in this case. If you use the pkcs11 library, that
Library controls that tpm object. Rest assured your key is still available,
But not (easily) via side-channel means (ie using tpm2-tools directly.
You have to go through the library. In your case, all the tpm objects (keys)
are associated and managed with the token labelled "monkey".
If you use something like pkcs11-tool you should still see the object
You created. Information on how to do this can be found here:
https://github.com/tpm2-software/tpm2-pkcs11/blob/master/docs/PKCS11_TOOL.md#listing-objects
Also, tpm2_ptool verify commandlet is essentially a list objects as well... but it does some additional
things too.
Do these commands still show your key?
Internally, the key is loaded on demand into the TPM as a transient object. The key blob is stored
In the sqlite3 db at path TPM2_PKCS11_STORE.
Bill
>
> --
> Tadeusz
> _______________________________________________
> tpm2 mailing list -- tpm2(a)lists.01.org
> To unsubscribe send an email to tpm2-leave(a)lists.01.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-12-04 14:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-03 16:59 [tpm2] Re: RSA key pairs are gone when I reboot Tadeusz Struk
-- strict thread matches above, loose matches on Subject: below --
2019-12-04 14:09 Roberts, William C
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox