微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

HiveMQ-Cloud 获取 MQTT 的 ssl 指纹/证书

如何解决HiveMQ-Cloud 获取 MQTT 的 ssl 指纹/证书

我正在尝试使用 hivemq-Cloud 服务 (https://console.hivemq.cloud/)。不幸的是,我被迫使用 ssl 选项,我不知道如何下载公钥/指纹。

有人熟悉这项服务吗?

我创建了一个集群并得到了这样的东西 somehash.s1.eu.hivemq.cloud:8883 然后我创建了一个用户并测试与此服务的连接:http://www.hivemq.com/demos/websocket-client/。它仅适用于启用选项“ssl”。

我以为我可以通过 ssh-keyscan 获取指纹:

ssh-keyscan -p 8883 <somehash>.s1.eu.hivemq.cloud
<somehash>.s1.eu.hivemq.cloud: Connection closed by remote host
<somehash>.s1.eu.hivemq.cloud: Connection closed by remote host
<somehash>.s1.eu.hivemq.cloud: Connection closed by remote host

我收到了这条消息。如何从 heemq-mqtt 服务中获取公钥?

解决方法

使用密钥扫描对我不起作用,但使用 openssl。 这是我的问题的解决方案: Get certificate fingerprint of HTTPS server from command line?

openssl s_client -connect <somehash>.s1.eu.hivemq.cloud:8883 < /dev/null 2>/dev
/null | openssl x509 -fingerprint -noout -in /dev/stdin

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。