15 Star 19 Fork 16

OpenHarmony-TPC / ohos_mqtt

 / 详情

求助!ssl连接报错,错误码:140DC009

待办的
任务
创建于  
2024-05-13 11:23

【任务描述】
ssl连接失败,日志为

05-10 16:05:35.663  4671  4671 E A00000/AsyncMqtt: AsyncMqtt MqttConnect start
05-10 16:05:35.663  4671  4671 E A00000/AsyncMqtt: AsyncMqtt ssl connect
05-10 16:05:35.663  4671  4671 E A00000/AsyncMqtt: AsyncMqtt Connecting
05-10 16:05:35.664  4671  4671 E A00000/AsyncMqtt: AsyncMqtt MQTTAsync_connect rc = 0
05-10 16:05:35.766  4671  4758 E A00000/AsyncMqtt: AsyncMqtt MqttSslErr: str:4075289980:error:140DC009:SSL routines:use_certificate_chain_file:PEM lib:../ssl/ssl_rsa.c:603:
05-10 16:05:35.766  4671  4758 E A00000/AsyncMqtt: , len:96, u:(null)
05-10 16:05:35.869  4671  4758 E A00000/AsyncMqtt: AsyncMqtt MqttSslErr: str:4075289980:error:140DC009:SSL routines:use_certificate_chain_file:PEM lib:../ssl/ssl_rsa.c:603:
05-10 16:05:35.869  4671  4758 E A00000/AsyncMqtt: , len:96, u:(null)
05-10 16:05:35.869  4671  4758 E A00000/AsyncMqtt: AsyncMqtt Connect Fail code: -1, message:TCP/TLS connect failure
05-10 16:05:35.869  4671  4758 E A00000/AsyncMqtt: AsyncMqtt Connect CallTsFunction Success

网上搜索相关的错误都是说是证书文件缺少了换行,对比了其他平台能正常使用。请问下是哪方面的错误?
【解决方案】

【任务来源】

评论 (0)

Tiimmi 创建了任务
Tiimmi 修改了描述
展开全部操作日志

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(1)
1
https://gitee.com/openharmony-tpc/ohos_mqtt.git
git@gitee.com:openharmony-tpc/ohos_mqtt.git
openharmony-tpc
ohos_mqtt
ohos_mqtt

搜索帮助