]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[tls] Send an empty client certificate chain if we have no certificate 1437/head
authorMichael Brown <mcb30@ipxe.org>
Mon, 31 Mar 2025 13:25:41 +0000 (14:25 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 31 Mar 2025 13:33:16 +0000 (14:33 +0100)
commitf115cfcf994e0141eb1f9c0a3684c8d1b6260719
tree55fcc61d821a4f2553ee633d9cc221496af178ec
parent5818529f39fc245744d966d8ad49cf194ee3109d
[tls] Send an empty client certificate chain if we have no certificate

RFC5246 states that "a client MAY send no certificates if it does not
have an appropriate certificate to send in response to the server's
authentication request".  This use case may arise when the server is
using optional client certificate verification and iPXE has not been
provided with a client certificate to use.

Treat the absence of a suitable client certificate as a non-fatal
condition and send a Certificate message containing no certificates as
permitted by RFC5246.

Reported-by: Alexandre Ravey <alexandre@voilab.ch>
Originally-implemented-by: Alexandre Ravey <alexandre@voilab.ch>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/tls.c