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: load tpm2tss engine in openssl #258

Closed marco99asr closed 1 year ago

marco99asr commented 2 years ago

Hi im tryng to add tpm2tss engine to openssl

root:/home# openssl engine -t -c (rdrand) Intel RDRAND engine [RAND] [ available ] (dynamic) Dynamic engine loading support [ unavailable ]

root:/home# openssl engine tpm2tss -t -c (tpm2tss) TPM2-TSS engine for OpenSSL [RSA, RAND] [ available ]

Can someone help me ?

williamcroberts commented 2 years ago

That's a very vague question:

  1. How did you install it?
  2. What's your distro?
  3. Did you follow https://github.com/tpm2-software/tpm2-tss-engine/blob/master/INSTALL.md?
marco99asr commented 2 years ago

https://github.com/eclipse/mosquitto/issues/2646

williamcroberts commented 2 years ago

¯\_(ツ)_/¯ I have no idea

AndreasFuchsTPM commented 2 years ago

From the config in the linked ticket, I'd assume something like

tls_engine tpm2tss
tls_keyform engine

Does this work / not work ?