Secure Communication using TLS1.3

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

noufalp
Posts: 12
Joined: Mon Jan 18, 2021 12:10 pm

Secure Communication using TLS1.3

Tue Jun 15, 2021 5:48 pm

Hi Team,

One of my project we are using SAMA5d27 SOC with STM chip connected via serial port. On STM RTOS is running and on SAMA5d27 SOC, Linux OS is configured. We would like to implement secure communication between SAMA5d27 chip and STM chip using TLS1.3. Is there any example code or reference document available for secure communication implementation on SAMA5d2 chip over serial port?

Regards
Noufal P
blue_z
Location: USA
Posts: 2157
Joined: Thu Apr 19, 2007 10:15 pm

Re: Secure Communication using TLS1.3

Thu Jun 17, 2021 1:05 am

Using Linux on the Microchip hardware eliminates most hardware dependencies.
"Any example code or reference document " that you can find on the web should be applicable.

Linux userspace is expected to access "serial port" hardware using the terminal API (aka termios) and device nodes for serial terminals (e.g. /dev/ttyS1).
This serial terminal interface is well established, and portable code can be written (i.e. work with any conventional serial port), although I've seem many non-robust and/or inefficient examples.

Regards
noufalp
Posts: 12
Joined: Mon Jan 18, 2021 12:10 pm

Re: Secure Communication using TLS1.3

Thu Jun 17, 2021 7:10 am

Hi
Thanks for your reply.

But am looking for the secure communication using TLS1.3 over serial terminal. We are able to achieve normal communication using termios API and serial port /dev/ttyS*.
blue_z
Location: USA
Posts: 2157
Joined: Thu Apr 19, 2007 10:15 pm

Re: Secure Communication using TLS1.3

Thu Jun 17, 2021 8:52 pm

noufalp wrote: But am looking for the secure communication using TLS1.3 over serial terminal.
So what research have you done so far?

A quick, simple search for "TLS linux" turns up Kernel TLS, which states:
> Transport Layer Security (TLS) is a Upper Layer Protocol (ULP) that runs over TCP.

Since "TLS is a[n] Upper Layer Protocol", you cannot use it directly on a serial link, which is the physical (lowest) layer.
If you expect to use TCP/IP on a serial link, then you would also need Point-to-Point Protocol (PPP) .

Regards
noufalp
Posts: 12
Joined: Mon Jan 18, 2021 12:10 pm

Re: Secure Communication using TLS1.3

Mon Jun 21, 2021 6:48 am

Hi

We are not using TCP/IP on serial terminal. We want to use serial terminal as it is for UART communication. But the requirement is to secure/encrypt the communication using certificates as used in TLS1.3.


Regards
Noufal P
noufalp
Posts: 12
Joined: Mon Jan 18, 2021 12:10 pm

Re: Secure Communication using TLS1.3

Thu Jun 24, 2021 1:59 pm

Hi

If you expect to use TCP/IP on a serial link, then you would also need Point-to-Point Protocol (PPP)
Can you please refer any documents for the same?
blue_z
Location: USA
Posts: 2157
Joined: Thu Apr 19, 2007 10:15 pm

Re: Secure Communication using TLS1.3

Fri Jun 25, 2021 5:25 am

Return to “LINUX”

Who is online

Users browsing this forum: No registered users and 9 guests