I have an embedded Linux system with MQTT through a local broker. Applications act as MQTT clients to the local broker which is set up as a bridge to a cloud broker.
To enable TLS between the local and cloud broker there are options in mosquitto.conf such as bridge_certfile
which use keys on the file system, as explained in this question and the Mosquitto documentation.
How can I setup the Mosquitto bridge to use OpenSSL for TLS, to enable the use of a Secure Element for private key storage?