I am using Mbed cloud client example vers 1.3.3 code from mbed OS webpages.
plz find details
Changelog for Mbed Cloud Client Reference Example
Release 1.3.3 (11.06.2018)
- Updated to Mbed OS 5.8.5.
My issue is
I have 2 setups:
- FRDM K64F devboard
- IoT starter Kit (FRDM K64F)
Code is working fine with FRDM K64F, but the same code is giving error with IoT starter kit
Does the same mbed cloud client code will work for both setup?
Here is the error I received from the mbed cloud client code using the IoT starter kit:
[ERR ][fcc ]: cs_der_certs.c:175:cs_check_der_x509_format:pal_x509CertParse failed
[ERR ][fcc ]: key_config_manager.c:190:kcm_item_store:<=== Certificate validation failed
[DBG ][PAL ]: TLS set and parse status 0.
[DBG ][mClt]: M2MConnectionSecurityPimpl::init - out
[DBG ][mClt]: M2MConnectionHandlerPimpl::receive_handshake_handler()
[DBG ][mClt]: M2MConnectionSecurityPimpl::connect
[DBG ][mClt]: M2MConnectionSecurityPimpl::start_handshake
[ERR ][PAL ]: SSL handshake return code 0xfff4.
[DBG ][mClt]: M2MConnectionSecurityPimpl::start_handshake pal_handShake() error -16
[DBG ][mClt]: M2MConnectionSecurityPimpl::connect - handshake ret: -1
[ERR ][mClt]: M2MConnectionHandlerPimpl::receive_handshake_handler() - SSL_HANDSHAKE_ERROR
[ERR ][mClt]: M2MInterfaceImpl::socket_error: (6), retry (1), reconnecting (0), reconnection_state (0)
[DBG ][mClt]: M2MInterfaceImpl::internal_event : new state 0
[DBG ][mClt]: M2MInterfaceImpl::state_engine
[DBG ][mClt]: M2MInterfaceImpl::state_idle
[DBG ][mClt]: M2MNsdlInterface::stop_timers()
[INFO][mClt]: M2MInterfaceImpl::socket_error - reconnecting in 5(s)
[ERR ][mClt]: ConnectorClient::error() - error: 11
[ERR ][mClt]: ServiceClient::connector_error() error 11
[DBG ][mClt]: ServiceClient::registration_process_result(): status: 3
[DBG ][mClt]: ServiceClient::internal_event: state: 1 → 4
[DBG ][mClt]: ServiceClient::state_engine
[ERR ][mClt]: ServiceClient::state_failure()
[INFO][mClt]: MbedCloudClient::complete status (-1)
[ERR ][mClt]: MbedCloudClient::error code (11)
Error occurred : MbedCloudClient::ConnectSecureConnectionFailed
Error code : 11
Error details : Client in reconnection mode SecureConnectionFailed
Thanks.