-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with connecting to iothub over MQTT for Android #328
Comments
Hi @mahalakshmirathinam , |
Used the openssl version 1.0.2l I even tried with with first certificate given in certs.c I'm getting this error 130|root@msm8909:/data/krossbox # ./iothub_client_sample_mqtt set trusted cert samples enabled Used the connection string Please help me to resolve this issue. |
Did you try checking the openssl authentication against your hub (using the openssl application), like suggested in #198? What is the output? |
Now this is interesting... you are getting responses back from the service (<- CONACK), so the TLS connection was established. Is your connection string correct? |
Yes. My connection string is correct. |
Hi @mahalakshmirathinam , |
@mahalakshmirathinam it occurs error when I cross-compile Azure C SDK to android arm32 bit device:
toolchain.cmake:
OS version: 4.4.2 (sdk version 19) Have you ever encountered the same problem? What's the toolchain you used? Could you please give me some advices about that? Thanks so much. |
Arch : arm 32bit
Board: QUECTEL SC20-E
Description of the issue:
Trying to cross-compile Azure C sdk version 1.1.28 to android arm32 bit device.
I did it successfully but the ported libraries and samples does not connect to azure iot hub.
Getting the following error.
Info: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
Info: Closing tlsio from a state other than TLSIO_STATE_EXT_OPEN or TLSIO_STATE_EXT_ERROR
Can you help me to figure out the issue.
Code sample exhibiting the issue:
Console log of the issue:
root@msm8909:/data/krossbox # ./simplesample_mqtt
WARNING: linker: ./simplesample_mqtt: unused DT entry: type 0x1d arg 0x4d52
Info: IoT Hub SDK for C, version 1.1.28
Error: Time:Thu Dec 14 16:58:02 2017 File:/root/openwrt/sdk/package/new_azure_c_sdk/azure-iot-sdk-c/serializer/src/agenttypesystem.c Func:AgentDataTypes_ToString Line:1309 (result = AGENT_DATA_TYPES_INVALID_ARG)
Error: Time:Thu Dec 14 16:58:02 2017 File:/root/openwrt/sdk/package/new_azure_c_sdk/azure-iot-sdk-c/serializer/src/jsonencoder.c Func:JSONEncoder_EncodeTree Line:149 (result = JSON_ENCODER_TOSTRING_FUNCTION_ERROR)
Error: Time:Thu Dec 14 16:58:02 2017 File:/root/openwrt/sdk/package/new_azure_c_sdk/azure-iot-sdk-c/serializer/src/datamarshaller.c Func:DataMarshaller_SendData Line:187 (result = DATA_MARSHALLER_JSON_ENCODER_ERROR)
Error: Time:Thu Dec 14 16:58:02 2017 File:/root/openwrt/sdk/package/new_azure_c_sdk/azure-iot-sdk-c/serializer/src/datapublisher.c Func:DataPublisher_EndTransaction Line:270 (result = DATA_PUBLISHER_MARSHALLER_ERROR)
Error: Time:Thu Dec 14 16:58:02 2017 File:/root/openwrt/sdk/package/new_azure_c_sdk/azure-iot-sdk-c/serializer/src/iotdevice.c Func:Device_EndTransaction Line:226 (result = DEVICE_DATA_PUBLISHER_FAILED)
Error: Time:Thu Dec 14 16:58:02 2017 File:/root/openwrt/sdk/package/new_azure_c_sdk/azure-iot-sdk-c/serializer/src/codefirst.c Func:CodeFirst_SendAsync Line:1350 (result = CODEFIRST_DEVICE_PUBLISH_FAILED)
Failed to serialize
Info: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
Info: Closing tlsio from a state other than TLSIO_STATE_EXT_OPEN or TLSIO_STATE_EXT_ERROR
Info: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
Info: Closing tlsio from a state other than TLSIO_STATE_EXT_OPEN or TLSIO_STATE_EXT_ERROR
The text was updated successfully, but these errors were encountered: