tpm2-software / tpm2-tss-engine

OpenSSL Engine for TPM2 devices
https://tpm2-software.github.io
BSD 3-Clause "New" or "Revised" License
151 stars 100 forks source link

How to generate key pair and csr using tss engine #228

Closed ma3goul closed 2 years ago

ma3goul commented 3 years ago

Hi All ,

I want to generate a key pair and a csr using the tss engine . What is the command for that please .

Thank you

aaronUniontech commented 2 years ago

openssl req -utf8 -engine tpm2tss -keyform engine -new -key rsa.tss -out myrequest.csr -subj "/C=CN/ST=Hubei/L=Wuhan/O=UniontechCompany/CN=zhangya@uniontech.com"