-
Notifications
You must be signed in to change notification settings - Fork 4
Testing
- mosquitto.org at test.mosquitto.org
test.mosquitto.org:8883 uses a self signed certificate. You need to download their .CRT file Point your browser to test.mosquitto.org
The encrypted ports support TLS v1.2, v1.1 or v1.0 with x509 certificates and require client support to connect. In all cases you should use the certificate authority file (mosquitto.org.crt (PEM format), or mosquitto.org.der (DER format)) to verify the server connection. Port 8884 requires clients to provide a certificate to authenticate their connection. It is now possible to generate your own certificate.
mosquitto_pub -h test.mosquitto.org -t xamtest -m "
date hello again" -p 8883 --cafile .../your/machine/path/to/mosquitto.org.crt
- eclipse.org at iot.eclipse.org/
Public cert. You won't need to download their .CRT
-d
debug --insecure
if your hostname isn't listed in the .ca
For instance
mosquitto_pub -h iot.eclipse.org -t xamtest -m "Date;
date hello World" -p 8883 --cafile /etc/ssl/certs/ca-bundle.trust.crt -d --insecure
mosquitto_pub -h 192.168.1.222 -t xamtest -m "`date` Howdy It works!"
Using Let's encrypt. Let's encrypt can't be used to create a self signed certificate.
I'm trying to get a uniform mosquitto_pub to work. Still researching. Meanwhile I've found that these work.
mosquitto_pub -h iot.eclipse.org -t xamtest -m "`date` hello again" -p 8883 --capath /etc/ssl/certs/
mosquitto_pub -h iot.eclipse.org -t xamtest -m "Date; `date` hello World" -p 8883 --cafile /etc/ssl/certs/ca-bundle.trust.crt
With a self signed certificate.
mosquitto_pub -h redacted.org -p 8883 -t "xamtest" -m "
dateA message sent on port 8883" --cafile ./ca.crt --cert ./consoleclient.crt --key ./consoleclient.key
- Home Join in the fun it's a publicly editable wiki.