nRF Project: MQTT v5 TLS Setup using MQTT_Publisher example #97431
Unanswered
yudi-khatri
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
I have MQTT v5 up and running but I am currently trying to implement one-way TLS then mutual TLS once it's completed. I am not too sure what I am doing wrong, also I am pretty new to this.
I am including my files for your perusal. Most of it I have implemented from the NCS zephyr MQTT publisher example that is provided but using my own certs and the nRF5340DK board along with the W5500 controller board. Any help would be appreciated has I have been suck on this.
Full Details, please click
I always seem to get the following error in my serial terminal:
The TCP dump output is below and my interpretation of it:
14:54:08.975175 IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto TCP (6), length 44) 192.168.50.210.40075 > 192.168.50.215.8883: Flags [S], cksum 0x3f44 (correct), seq 1483820942, win 2730, options [mss 1460], length 0 0x0000: 4500 002c 0000 0000 4006 93d2 c0a8 32d2 E..,[email protected]. 0x0010: c0a8 32d7 9c8b 22b3 5871 4f8e 0000 0000 ..2...".XqO..... 0x0020: 6002 0aaa 3f44 0000 0204 05b4 0000 `...?D........ 14:54:08.976186 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 44) 192.168.50.215.8883 > 192.168.50.210.40075: Flags [S.], cksum 0xf3a3 (correct), seq 608907758, ack 1483820943, win 65535, options [mss 1460], length 0 0x0000: 4500 002c 0000 4000 4006 53d2 c0a8 32d7 E..,..@[email protected]. 0x0010: c0a8 32d2 22b3 9c8b 244b 31ee 5871 4f8f ..2."...$K1.XqO. 0x0020: 6012 ffff f3a3 0000 0204 05b4 `........... 14:54:08.983478 IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto TCP (6), length 40) 192.168.50.210.40075 > 192.168.50.215.8883: Flags [.], cksum 0x00b7 (correct), seq 1, ack 1, win 2730, length 0 0x0000: 4500 0028 0000 0000 4006 93d6 c0a8 32d2 E..([email protected]. 0x0010: c0a8 32d7 9c8b 22b3 5871 4f8f 244b 31ef ..2...".XqO.$K1. 0x0020: 5010 0aaa 00b7 0000 0000 0000 0000 P............. 14:54:08.985019 IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto TCP (6), length 40) 192.168.50.210.40075 > 192.168.50.215.8883: Flags [F.], cksum 0x00b6 (correct), seq 1, ack 1, win 2730, length 0 0x0000: 4500 0028 0000 0000 4006 93d6 c0a8 32d2 E..([email protected]. 0x0010: c0a8 32d7 9c8b 22b3 5871 4f8f 244b 31ef ..2...".XqO.$K1. 0x0020: 5011 0aaa 00b6 0000 0000 0000 0000 P............. 14:54:08.985228 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 40) 192.168.50.215.8883 > 192.168.50.210.40075: Flags [.], cksum 0x0b60 (correct), seq 1, ack 2, win 65535, length 0 0x0000: 4500 0028 0000 4000 4006 53d6 c0a8 32d7 E..(..@[email protected]. 0x0010: c0a8 32d2 22b3 9c8b 244b 31ef 5871 4f90 ..2."...$K1.XqO. 0x0020: 5010 ffff 0b60 0000 P....`.. 14:54:08.987085 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 47) 192.168.50.215.8883 > 192.168.50.210.40075: Flags [P.], cksum 0xbf4b (correct), seq 1:8, ack 2, win 65535, length 7 0x0000: 4500 002f 0000 4000 4006 53cf c0a8 32d7 E../..@[email protected]. 0x0010: c0a8 32d2 22b3 9c8b 244b 31ef 5871 4f90 ..2."...$K1.XqO. 0x0020: 5018 ffff bf4b 0000 1503 0300 0202 32 P....K........2 14:54:08.987403 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 40) 192.168.50.215.8883 > 192.168.50.210.40075: Flags [F.], cksum 0x0b58 (correct), seq 8, ack 2, win 65535, length 0 0x0000: 4500 0028 0000 4000 4006 53d6 c0a8 32d7 E..(..@[email protected]. 0x0010: c0a8 32d2 22b3 9c8b 244b 31f6 5871 4f90 ..2."...$K1.XqO. 0x0020: 5011 ffff 0b58 0000 P....X.. 14:54:08.996072 IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto TCP (6), length 40) 192.168.50.210.40075 > 192.168.50.215.8883: Flags [R], cksum 0x61a6 (correct), seq 1483820944, win 0, length 0 0x0000: 4500 0028 0000 0000 4006 93d6 c0a8 32d2 E..([email protected]. 0x0010: c0a8 32d7 9c8b 22b3 5871 4f90 0000 0000 ..2...".XqO..... 0x0020: 5004 0000 61a6 0000 0000 0000 0000 P...a......... 14:54:09.488659 IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto TCP (6), length 44) 192.168.50.210.55445 > 192.168.50.215.8883: Flags [S], cksum 0x6c11 (correct), seq 765989248, win 2730, options [mss 1460], length 0 0x0000: 4500 002c 0000 0000 4006 93d2 c0a8 32d2 E..,[email protected]. 0x0010: c0a8 32d7 d895 22b3 2da8 1180 0000 0000 ..2...".-....... 0x0020: 6002 0aaa 6c11 0000 0204 05b4 0000 `...l......... 14:54:09.489540 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 44) 192.168.50.215.8883 > 192.168.50.210.55445: Flags [S.], cksum 0x1db8 (correct), seq 2464269840, ack 765989249, win 65535, options [mss 1460], length 0 0x0000: 4500 002c 0000 4000 4006 53d2 c0a8 32d7 E..,..@[email protected]. 0x0010: c0a8 32d2 22b3 d895 92e1 c610 2da8 1181 ..2.".......-... 0x0020: 6012 ffff 1db8 0000 0204 05b4 `........... 14:54:09.496937 IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto TCP (6), length 40) 192.168.50.210.55445 > 192.168.50.215.8883: Flags [.], cksum 0x2acb (correct), seq 1, ack 1, win 2730, length 0 0x0000: 4500 0028 0000 0000 4006 93d6 c0a8 32d2 E..([email protected]. 0x0010: c0a8 32d7 d895 22b3 2da8 1181 92e1 c611 ..2...".-....... 0x0020: 5010 0aaa 2acb 0000 0000 0000 0000 P...*......... 14:54:09.498449 IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto TCP (6), length 40) 192.168.50.210.55445 > 192.168.50.215.8883: Flags [F.], cksum 0x2aca (correct), seq 1, ack 1, win 2730, length 0 0x0000: 4500 0028 0000 0000 4006 93d6 c0a8 32d2 E..([email protected]. 0x0010: c0a8 32d7 d895 22b3 2da8 1181 92e1 c611 ..2...".-....... 0x0020: 5011 0aaa 2aca 0000 0000 0000 0000 P...*......... 14:54:09.498635 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 40) 192.168.50.215.8883 > 192.168.50.210.55445: Flags [.], cksum 0x3574 (correct), seq 1, ack 2, win 65535, length 0 0x0000: 4500 0028 0000 4000 4006 53d6 c0a8 32d7 E..(..@[email protected]. 0x0010: c0a8 32d2 22b3 d895 92e1 c611 2da8 1182 ..2.".......-... 0x0020: 5010 ffff 3574 0000 P...5t.. 14:54:09.498784 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 47) 192.168.50.215.8883 > 192.168.50.210.55445: Flags [P.], cksum 0xe95f (correct), seq 1:8, ack 2, win 65535, length 7 0x0000: 4500 002f 0000 4000 4006 53cf c0a8 32d7 E../..@[email protected]. 0x0010: c0a8 32d2 22b3 d895 92e1 c611 2da8 1182 ..2.".......-... 0x0020: 5018 ffff e95f 0000 1503 0300 0202 32 P...._........2 14:54:09.498876 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 40) 192.168.50.215.8883 > 192.168.50.210.55445: Flags [F.], cksum 0x356c (correct), seq 8, ack 2, win 65535, length 0 0x0000: 4500 0028 0000 4000 4006 53d6 c0a8 32d7 E..(..@[email protected]. 0x0010: c0a8 32d2 22b3 d895 92e1 c618 2da8 1182 ..2.".......-... 0x0020: 5011 ffff 356c 0000 P...5l.. 14:54:09.509352 IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto TCP (6), length 40) 192.168.50.210.55445 > 192.168.50.215.8883: Flags [R], cksum 0x8e73 (correct), seq 765989250, win 0, length 0 0x0000: 4500 0028 0000 0000 4006 93d6 c0a8 32d2 E..([email protected]. 0x0010: c0a8 32d7 d895 22b3 2da8 1182 0000 0000 ..2...".-....... 0x0020: 5004 0000 8e73 0000 0000 0000 0000 P....s........Beta Was this translation helpful? Give feedback.
All reactions