DEPRECATED: New pure rust client in development here
This crate provides rustful wrappers for (unsafe) mosquitto mqtt library. With these wrappers you can write safe, superfast, concurrent mqtt code. Since mosquitto libraries are low level and avalilable on almost all the platforms, this crate is super portable
#####UBUNTU
- sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa
- sudo apt-get update
- sudo apt-get install mosquitto
- cargo build
#####MAC OSX
- brew install mosquitto
- cargo build
###SETUP TLS CONNECTIONS
-
Generate ca, server, client certificates using the guide here
-
Use the below commands to verify your connection
sudo openssl s_client -connect localhost:8884 -CAfile ./ca.crt -cert client.crt -key client.key
mosquitto_sub -t "ather/log-ship" -v --cafile ca.crt --cert client.crt --key client.key -p 8884
check this