The openHAB mqtt binding doesn’t support ssl
You can set it up by following:
However, I would recommend that you start by getting everything up and running without ssl, especially if you are running mosquitto only inside your own network, there is no need to use ssl. I had to use it because I had to use a cloud server due to my stupid cellular/mobile provider.
Once you have everything up and running without ssl then by all means set it up it you still need/want to,