ssl_handshake_client_async returning 5017: TLS_ERROR_UNEXPECTED_MESSAGE

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello,

I am running WICED 3.5.2 on a Particle Photon and every time that I try to do an MQTT Connect (to broker: AWS IoT) I get a TLS_ERROR_UNEXPECTED_MESSAGE returned from ssl_handshake_client_async().  Since, that function is closed source I cannot debug any further.

The name of the error seems to me to be an issue with the protocol....  Or could this be poorly named and be an issue with my certificates or private key?

Thanks,

Jake

0 Likes
1 Solution
JoYi_1844281
Level 6
Level 6
100 sign-ins 100 replies posted 50 likes received

Do you replace  the Root CA of your MQTT server when call  wiced_tls_init_root_ca_certificates() ?

And install correct certificate and private key (without encrypted key) when call wiced_tls_init_identity()

View solution in original post

0 Likes
1 Reply
JoYi_1844281
Level 6
Level 6
100 sign-ins 100 replies posted 50 likes received

Do you replace  the Root CA of your MQTT server when call  wiced_tls_init_root_ca_certificates() ?

And install correct certificate and private key (without encrypted key) when call wiced_tls_init_identity()

0 Likes