【发布时间】:2018-10-16 15:59:10
【问题描述】:
我想将 HTTP 设备连接到 IoT 核心。
我已经用 curl 命令尝试了this 一切顺利。
现在我想尝试将 POST 与 signatyure version 4 一起使用
我正在使用 postmand 发送一个 POST 请求,但我得到了这个输出:
"message": "The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.",
在授权字段中,我选择了“AWS 签名”并且我已经完成了所有这些:访问和密钥、aws 区域和服务名称=iotdata
我希望得到与使用 curl 命令时相同的结果:
curl --tlsv1.2 --cacert YY.pem --cert XX.pem.crt --key ZZ.pem.key -X POST -d "{ \"Trama\": \"message\"}" "https://PPPPPP.iot.eu-west-1.amazonaws.com:8443/topics/topicname?qos=1"
【问题讨论】:
标签: amazon-web-services post postman aws-iot