开发者社区 问答 正文

阿里云IOT连接异常


Hi Expert,


使用阿里云IOT的sdk, 发现设备显示在线, 但是收不到任何信息, 有警告信息: mqtt_real_confirm()| ! fail ! CN mismatch
请教问题出在哪呢, 谢谢


log如下:
notice] src/aliyun_iot_mqtt_client.c:1804 aliyun_iot_mqtt_init()| mqtt init success!
ert. version     : 3
erial number     : AA:6C:D2:22:21:C0:BC:EB
ssuer name       : CN=Aliyun MQTT broker, O=aliyun.com, OU=generate-CA, emailAddress=iot@aliyun.com
ubject name      : CN=server, O=aliyun.com, OU=generate-CA, emailAddress=iot@aliyun.com
ssued  on        : 2016-04-15 02:05:43
xpires on        : 2026-04-13 02:05:43
igned using      : RSA with SHA-512
SA key size      : 1024 bits
asic constraints : CA=false
ubject alt name  : localhost
ert. type        : SSL Server
ey usage         : Digital Signature, Non Repudiation, Key Encipherment
notice] public_libs/porting/mbedtls/aliyun_iot_network_ssl.c:47 mqtt_real_confirm()| ! fail ! CN mismatch
notice] public_libs/porting/mbedtls/aliyun_iot_network_ssl.c:52 mqtt_real_confirm()| ! fail ! self-signed or not signed
by a trusted CA
notice] src/aliyun_iot_mqtt_client.c:2196 aliyun_iot_create_thread()| create recieveThread, keepaliveThread and retrans
hread!
notice] src/aliyun_iot_mqtt_client.c:2323 aliyun_iot_mqtt_connect()| mqtt connect success!

展开
收起
fogwizard 2017-04-26 15:34:15 3680 分享 版权
1 条回答
写回答
取消 提交回答
  • 好像是SSL认证失败,可以先用CCP协议试一下;
    2017-04-27 09:02:37
    赞同 展开评论