Skip to contentSkip to conversation

ktls-utils and gnutls

DISCUSSION Chuck Lever III 3 participants 3 messages Jan 12, 2024 1 message not in the archive Handshake upcall for transport layer security

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 26 lines · Daiki Ueno

Hello Chuck,

I am Daiki from the GnuTLS team; nice to meet you.

We are currently collecting project ideas for GSoC[1] and I wonder if we could include something related to ktls-utils (tlshd), as it currently uses GnuTLS as the backend and I thought students may be interested in getting hands-on experience with both kernel and security.

A couple of things that come to my mind are:

1. make use of the GnuTLS handshake API to bypass record layer interaction as mentioned at [2]

2. provide some experimental mechanism (kernel module?) to allow userspace applications to use that facility sorely with the POSIX networking API (as in tlssock[3]), though I know that it's explicitly marked as out of scope of the project

Before adding those to the ideas page I would like to hear your opinion; any suggestions would be appreciated.

Quoted 6 lines

Footnotes:
[1] https://gitlab.com/gnutls/gnutls/-/wikis/Projects-for-newcomers

[2] https://bugzilla.redhat.com/show_bug.cgi?id=2182151#c61

[3] https://github.com/enarx-archive/tlssock

Hello Daiki -

I've copied a mailing list with my ktls-utils collaborators. Maybe Hans has a suggestion?

--
Chuck Lever

#2 lore raw
Quoted 29 lines · Chuck Lever III
Quoted 29 lines · Daiki Ueno

Hello Chuck,

I am Daiki from the GnuTLS team; nice to meet you.

We are currently collecting project ideas for GSoC[1] and I wonder if we could include something related to ktls-utils (tlshd), as it currently uses GnuTLS as the backend and I thought students may be interested in getting hands-on experience with both kernel and security.

A couple of things that come to my mind are:

1. make use of the GnuTLS handshake API to bypass record layer interaction as mentioned at [2]

2. provide some experimental mechanism (kernel module?) to allow userspace applications to use that facility sorely with the POSIX networking API (as in tlssock[3]), though I know that it's explicitly marked as out of scope of the project

Before adding those to the ideas page I would like to hear your opinion; any suggestions would be appreciated.

Footnotes:
[1] https://gitlab.com/gnutls/gnutls/-/wikis/Projects-for-newcomers

Quoted 9 lines
Quoted 3 lines

[2] https://bugzilla.redhat.com/show_bug.cgi?id=2182151#c61

[3] https://github.com/enarx-archive/tlssock

Hello Daiki -

I've copied a mailing list with my ktls-utils collaborators. Maybe Hans has a suggestion?

There are some issues which could've been addressed:

1. Multiple PSK keys per ClientHello: the RFC allows for multiple PSKs to be sent with each ClientHello, yet gnutls implements only support for a single PSK. This is getting interesting when several cipher suites with different lengths or different scopes are supported, and the server could pick the appropriate one instead of having the client to retry a ClientHello with every available PSK.

2. Support for SPDM device attestation certificates: SPDM has defined the use of X.509 certificates for device attestation. But as these certificates are not bound to a network instance SPDM makes use of 'Subject Alternative Name' with a distinct OID. It would be good to implement support for SPDM X.509 certificates as chances are they will become more prevalent.
And any implementor will need to generate valid SPDM certificates to test out the implementation ...

Cheers,

Hannes

#3 lore raw
Quoted 10 lines · Hannes Reinecke

There are some issues which could've been addressed:

1. Multiple PSK keys per ClientHello: the RFC allows for multiple PSKs to be sent with each ClientHello, yet gnutls implements only support for a single PSK. This is getting interesting when several cipher suites with different lengths or different scopes are supported, and the server could pick the appropriate one instead of having the client to retry a ClientHello with every available PSK.

Quoted 8 lines

2. Support for SPDM device attestation certificates: SPDM has defined the use of X.509 certificates for device attestation. But as these certificates are not bound to a network instance SPDM makes use of 'Subject Alternative Name' with a distinct OID. It would be good to implement support for SPDM X.509 certificates as chances are they will become more prevalent.
And any implementor will need to generate valid SPDM certificates to test out the implementation ...

Thank you. I've added both ideas to the list.

Regards,

Signature · 1 line
Daiki Ueno