Skip to content

Instantly share code, notes, and snippets.

@HQarroum
Last active September 20, 2022 10:08
Show Gist options
  • Save HQarroum/ec13dc1f74facbe94a7d7c33eb1da03f to your computer and use it in GitHub Desktop.
Save HQarroum/ec13dc1f74facbe94a7d7c33eb1da03f to your computer and use it in GitHub Desktop.
Example of using mosquitto_pub with ALPN extensions.
mosquitto_pub \
--cert path/to/certificate.pem.crt \
--key path/to/private/key.pem.key \
--cafile path/to/AmazonRootCA1.pem \
--host <id>-ats.iot.<region>.amazonaws.com \
--port 443 \
--tls-alpn "x-amzn-mqtt-ca" \
--topic "device/telemetry" \
--message "foo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment