I have a remote server, on that mqtt broker is running. Mqtt has been secured by ssl certificate and now port 8883 is open to receive the mqtts messages.
Now i have a raspberry pi and i want to use the terminal of raspverry pi to send the mqtts message to my remore server but i got no success. This is the command
mosquitto_pub -h mqtts://18.104.22.168 -p 8883 -t test -m "okay" -u aswin -P 123efr -d
where im doing the mistake? if i use simple mqtt then the following command is working fine
mosquitto_pub -h 22.214.171.124 -p 1883 -t test -m "okay" -u aswin -P 123efr -d