Bun compatibility slice
Port js/valkey/valkey-tls-verify.test.ts at exhaustive corpus position 4082.
Required behavior
- reject CA-trusted certificates whose DNS/IP names do not match with
ERR_TLS_CERT_ALTNAME_INVALID; - preserve the distinct
DEPTH_ZERO_SELF_SIGNED_CERTchain error; - allow mismatches when verification is disabled;
- accept matching localhost/IPv6 SANs and CA-trusted Unix-socket TLS connections;
- retain TLS operation, endpoint, TLS code, and causal stack metadata while redacting credentials and paths;
- cover the complete seven-test platform surface in focused and permanent gates.
Tracked from #66.