xaptum / xtt

A C implementation of the Trusted Transit protocol for securing Internet of Things (IoT) network traffic. Created to support the Xaptum Edge Network Fabric, an IoT Network Solution.
https://www.xaptum.com
Apache License 2.0
5 stars 5 forks source link

Define context formats #89

Open kathrynfejer opened 6 years ago

kathrynfejer commented 6 years ago

In relation to discussion on #78:

In the client code of the handshake, we have initialize_{daa, certs, tcti}. Each of these must read in multiple pieces of information either from files(software DAA) or from the TPM's nvram. Could we create three different "contexts" or "certificates", so that we only need to read in 1 piece of data and then parse those? Those three being a group_context, a TLS root_cert and a xtt root_cert.

zanebeckwith commented 5 years ago

Regarding root certificates:

Yes, this should (now) be as simple as:

In the longer term, we can discuss if we want to transition our root cert format away from the current binary concatenation form, to just using a static x.509 (like we're doing with the client certs, except in this case parsing a cert, rather than building it).

drbild commented 5 years ago

In the longer term, we can discuss if we want to transition our root cert format away from the current binary concatenation form, to just using a static x.509 (like we're doing with the client certs, except in this case parsing a cert, rather than building it).

I think we should have a discussion about this soon (maybe later this week). We might not act on that immediately, but should at least decide on the file formats that we want.

zanebeckwith commented 5 years ago

Regarding the discussion on root cert formats, see the discussion in issue #67