MQTT+TLS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MQTT+TLS

4,193 Views
asvitha
Contributor I

Hi,

I have implemented MQTT with FREE RTOS code, Now adding TLS with this code I got some issues like:

mbedtls_ssl_flush_output() returned -69 (-0x0045)
, at line 3472 in file .ssl_tls.c

0x20210f98: ssl_write_record() returned -69 (-0x0045)
, at line 3315 in file .ssl_tls.c

0x20210f98: mbedtls_ssl_write_handshake_msg() returned -69 (-0x0045)
, at line 1095 in file .ssl_cli.c
failed
! mbedtls_ssl_handshake returned -0x45

0 Kudos
Reply
4 Replies

4,121 Views
asvitha
Contributor I

Hi,

I am trying to implement MQTT with TLS but I face some issues in tls handshake,mbedtls handshake -26880 ( MBEDTLS_ERR_SSL_WANT_READ) it is .In wireshark,

client hello is success

server hello, certificate, server key exchange, server hello done is success

but i didn't get the complete tls handshake it is not connecteed to broker because of this error mbedtls handshake -26880 ( MBEDTLS_ERR_SSL_WANT_READ) 

 

server hello

0 Kudos
Reply

4,156 Views
asvitha
Contributor I

Thank You for your Guidance

0 Kudos
Reply

4,181 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
To provide the fastest possible support, I'd highly recommend you refer to the AWS_example demos in the SDK library.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply

4,177 Views
mjbcswitzerland
Specialist V

Hi

Note that the uTasker project also includes out-of-the-box MQTT + TLS on Kinetis and i.MX RT 10xx parts:

User's guide: https://www.utasker.com/docs/uTasker/uTasker_MQTT.pdf

Video: https://www.youtube.com/watch?v=-_CV2aXHyjw&list=PLWKlVb_MqDQFZAulrUywU30v869JBYi9Q&index=24

Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]
Contact me by personal message or on the uTasker web site to discuss professional training, solutions to problems or product development requirements

 

0 Kudos
Reply