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?