0

我正在尝试使用用户名和密码将消息发布到 AWS IOT 代理。我能够使用证书发布数据,但甚至无法创建具有令牌验证的授权者。当我勾选令牌验证复选框时,我可以添加令牌头名称和键值对,但是当我单击创建或更新按钮时,它会给我以下错误:

The action failed because the input is not valid. Token signing keys map must be null for authorizer epdevice-authorizer if using optional signature header

我从这里按照步骤操作:https ://docs.aws.amazon.com/iot/latest/developerguide/custom-auth.html

还有一个问题,我如何测试这个 AWS IOT 代理来发布数据?在 MQTTfx 中,我可以使用证书轻松测试,但对于自定义身份验证,我无法测试。在上面的链接中,提到客户端需要两个扩展 ALPN 和 SNI,如下所述:

They also must pass the Application Layer Protocol Negotiation (ALPN) TLS extension with a value of mqtt and the Server Name Indication (SNI) extension with the host name of their AWS IoT Core data endpoint.

而且,我认为 MQTTfx 没有这里提到的这些扩展: https://bitbucket.org/Jerady/mqtt-fx-client/issues/263/port-8883-443-implementation-of-the-alpn

因此,如果有人可以为这些扩展提供一些替代 mqtt 客户端,我将不胜感激。

4

0 回答 0