Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@dkpkg/dk-lib-mqtt

dkpkg7MIT1.0.4TypeScript support: included

dkpkg file library

dkpkg, lib, mqtt

readme

File description

Certificate to access AWS IoT core mqtt broker.

After creating the AWS IoT Core mqtt broker, you can download the start kit program. Certificate samples automatically downloaded from AWS are added when this start kit (start.sh) is executed. In actual service, it should be changed to the certificate used.

Use curl to access it like this:

$ curl --tlsv1.2 \
    --cacert cacert.development.crt \
    --cert client.cert.development.pem \
    --key client.private.development.key \
    --request POST \
    --data "{ \"message\": \"Hello, world\" }" \
    "https://a-b.iot.ap-northeast-2.amazonaws.com:8443/topics/topic_2?qos=1"
  • cacert.{development | production}.crt : CA Certificate. File created as root-CA.crt when aws iot start kit script is executed
  • client.cert.{development | production}.pem : client cetificate. File created as <thing name>.cert.pem when running aws iot start kit script
  • client.private.{development | production}.key : private key. File created as <thing name>.private.key when running aws iot start kit script