tpm2-openssl icon indicating copy to clipboard operation
tpm2-openssl copied to clipboard

How to use TPM2-openssl with Mosquitto or Paho MQTT library?

Open tonyyuandao opened this issue 7 months ago • 0 comments

looking at mosquitto_pub man page:
It supports:

--keyform Specifies the type of private key in use when making TLS connections.. This can be "pem" or "engine". This parameter is useful when a TPM module is being used and the private key has been created with it. Defaults to "pem", which means normal private key files are used. --tls-engine A valid openssl engine id. These can be listed with openssl engine command.

the engine keyword hints mosquitto lib expects openssl 1.x. Can I still use openssl 3.x and tpm2-openssl? Or do I need to downgrade to openssl 1.x and tmp2-ssl-engine?

And how about Paho MQTT library, how can I integrate tpm2-openssl with it?

tonyyuandao avatar Mar 12 '25 03:03 tonyyuandao