Skip to content

fix(tests): read mTLS alerts until the server closes - #251

Merged
catinspace-au merged 1 commit into
mainfrom
fix/mtls-client-cert-check
Nov 10, 2026
Merged

catinspace-au merged 1 commit into
mainfrom
fix/mtls-client-cert-check

Conversation

@catinspace-au

Copy link
Copy Markdown
Contributor

Under TLS 1.3 the server refuses a missing or untrusted client certificate after the client has finished its side of the handshake. The no-certificate and other-CA cases closed s_client one second after it started. If the receiver took longer, the cases failed without reading its alert. Under a 25% CPU quota, the old test failed 8 of 34 cases with no alert in the output.

Those cases now read until the server closes the connection or the existing 10 second timeout ends. When the verifier allows unauthenticated clients, the five HTTP-family listeners still fail the no-certificate case.

Under TLS 1.3 the server refuses a missing or untrusted client certificate after the client has finished its side of the handshake. The no-certificate and other-CA cases closed s_client one second after it started. If the receiver took longer, the cases failed without reading its alert. Under a 25% CPU quota, the old test failed 8 of 34 cases with no alert in the output.

Those cases now read until the server closes the connection or the existing 10 second timeout ends. When the verifier allows unauthenticated clients, the five HTTP-family listeners still fail the no-certificate case.
@catinspace-au
catinspace-au marked this pull request as ready for review November 10, 2026 18:40
@catinspace-au
catinspace-au merged commit a6415aa into main Nov 10, 2026
23 checks passed
@catinspace-au
catinspace-au deleted the fix/mtls-client-cert-check branch November 10, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant