Skip to content

Dual certificate support does not cover keyring-provided client certificates #151

Description

@chucklever

ktls-utils 1.3.0 added client-side dual certificate support (commit facd084) so that a client can present a post-quantum certificate alongside a traditional RSA certificate. That work covers only certificates loaded from /etc/tlshd.conf. When an NFS client specifies alternate certificates at mount time (-o xprtsec=mtls,cert_serial=...,privkey_serial=...), the certificate and private key arrive via the .nfs keyring, and there is currently no way to provide or select a PQ certificate for the handshake.

Design questions raised in the linux-nfs / kernel-tls-handshake discussion of this gap:

  • Add separate PQ certificate and PQ private key parameters to the handshake upcall, or
  • Store lists of both PQ and RSA certificates and private keys under the existing keys and teach tlshd to parse both out of them (feasibility unverified).

The keyring-based mount UI itself is being reworked; whatever replaces it needs to carry PQ authentication material as well.

Reported by Sagi Grimberg and triaged by Scott Mayhew:
https://lore.kernel.org/all/fd4aaf4e-b1b7-4ca2-bc93-955c31fab317@grimberg.me/
https://lore.kernel.org/all/afUKzeUYPhb97DX4@aion/

Related: #113 (original PQC support, closed).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions