The mosquitto command is correct, but mqtt doesn't allow to an user to establish multiple connection with the same client id.
If you want to use mosquitto you have to create an object for the pub and one for the sub client, or you can simply write a script to do that with a single connection.
gilbibius:
If you want to use mosquitto you have to create an object for the pub and one for the sub client, or you can simply write a script to do that with a single connection.
As I said in the first post, I did that.
So that was NOT the problem. The problem is that I did not provide a CA for mosquitto to establish an SSL connection, which is what I said in the 2nd post.