我正在尝试使用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
我收到了这条信息。如何从himemq mqtt服务获取公钥?
发布于 2021-07-25 14:12:02
对我来说,keyscan不起作用,但是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
https://stackoverflow.com/questions/68519307
复制