[tpm2] Can't se't signature algorithm when using tpm2_import

rodolphe.averty at free.fr Thu, 19 May 2022 14:48:51 +0200
Newsgroups dev.linux.lists.tpm2
Message-ID <[email protected]>
attachment.htm (text/html, 2.6 KB)
<html><body><div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);" dir="auto"><br></div><div id="mail-editor-reference-message-container" dir="auto"><br>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="auto" style="color:rgb(33,33,33); background-color:rgb(255,255,255)">Hello,&nbsp;</div><div dir="auto" style="color:rgb(33,33,33); background-color:rgb(255,255,255)"><br></div><div dir="auto" style="color:rgb(33,33,33); background-color:rgb(255,255,255)">I'am trying to important my private key into the TPM :</div><div dir="auto" style="color:rgb(33,33,33); background-color:rgb(255,255,255)">- tpm2_createprimary... .. .&nbsp;</div><div dir="auto" style="color:rgb(33,33,33); background-color:rgb(255,255,255)">- tpm2_import -G rsa2048:rsassa-sha256 -i private.pem -C parent.ctx -u irsakey.pub -r irsakey.pri</div><div dir="auto" style="color:rgb(33,33,33); background-color:rgb(255,255,255)">- tpm2_load... ..&nbsp;</div><div dir="auto" style="color:rgb(33,33,33); background-color:rgb(255,255,255)">- tpm2_evictcontrol... ..&nbsp;</div><div dir="auto" style="color:rgb(33,33,33); background-color:rgb(255,255,255)"><br></div><div dir="auto" style="color:rgb(33,33,33); background-color:rgb(255,255,255)">Every thing seems to be Ok</div><div dir="auto" style="color:rgb(33,33,33); background-color:rgb(255,255,255)"><br></div><div dir="auto" style="color:rgb(33,33,33); background-color:rgb(255,255,255)">But when i use the command :</div><div dir="auto" style="color:rgb(33,33,33); background-color:rgb(255,255,255)"><br></div><div dir="auto" style="color:rgb(33,33,33); background-color:rgb(255,255,255)">- pki --print --type private --keyid 0x81000002</div><div id="ms-outlook-mobile-signature" dir="auto"><div dir="auto">&gt;&gt; .. . .&nbsp;</div><div dir="auto">&gt;&gt; Signature algorithm is null with error hash</div><div dir="auto">&gt;&gt;Privkey .. . .&nbsp;</div><div dir="auto">&gt;&gt;keyid .. . .&nbsp;</div><div dir="auto">&gt;&gt;subjkey .. .&nbsp;</div><div dir="auto"><br></div><div dir="auto">With that i can't use my key un strong swan</div><div dir="auto"><br></div><div dir="auto">Is there a way to have à signature algorithm with tpm2_import ?&nbsp;</div><div dir="auto">Is This à tpm2_import limitation ?&nbsp;</div><div dir="auto"><br></div><div dir="auto">Or&nbsp; a bug.. .&nbsp;</div><div dir="auto"><br></div><div dir="auto">Thanks fort help</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div>Télécharger <a href="https://aka.ms/ghei36">Outlook pour Android</a></div><br></div></body></html>