Re: [PATCH 1/2] X.509: Accept a certificate with an empty subject

From: Laveesh Bansal

Date: Mon Nov 16 2026 - 00:21:46 EST


On Thu, Nov 12, 2026 at 12:09:06AM -0800, Eric Biggers wrote:
> This problem (and many others) could also be solved if iwd switched to
> use a userspace crypto library instead of misusing the kernel APIs.

You're right that iwd could avoid this. My reasoning for fixing it in
the kernel is that RFC 5280 requires the Subject to be empty when the
name is only in the SAN, and the Name rule in x509.asn1 rejects that.
So this is a case the parser doesn't handle, not something specific to
iwd.