Tracks copied Bun corpus position 4152 (js/web/fetch/fetch.tls.wildcard.test.ts).
Scope:
- run the complete unchanged upstream wildcard TLS matrix
- implement RFC 6125 single-label wildcard matching and reject bare, multi-label, and deeply nested mismatches
- preserve RFC 4343 case-insensitive DNS comparison
- complete both success and error event paths for
tls.connect()against TLS-enabledBun.serve()listeners - expose Bun/Node-compatible
ERR_TLS_CERT_ALTNAME_INVALIDfailures with structured operation, phase, endpoint, hostname, certificate pattern, cause, and composed stack context - add a permanent focused regression and keep the ordered corpus frontier at zero failures/unsupported cases