irtimmer / tpm2-pk11

[DEPRECATED] PKCS#11 Module for TPM 2.0
BSD 2-Clause "Simplified" License
68 stars 24 forks source link

[Question] Private key for CSR #87

Open longntv opened 5 years ago

longntv commented 5 years ago

Hello Everyone,

I'm using TPM2 to generate CSR as described in wiki. After get certificate which signed by server side, in my case, I have to use private key used for CSR generation to handshake with SSL connection with server. I tried to convert key.priv using base64 command but failed. And could you please support me to explain below questions: 1) Can I use private key "key.priv" when created private key in TPM tpm2_create -c po.ctx -g sha256 -G rsa -u key.pub -r key.priv 2) If question 1 is no, which private key will be accepted? 3) What are key.pub and key.priv used for?

Thank you very much.