Kernel TLS (kTLS) moves TLS record handling into the Linux kernel for reduced context switching and higher throughput. Because macOS uses its own XNU kernel, native kTLS isn't supported on the host OS, making local testing on a Mac tricky.
The cleanest solution I found is to run a lightweight Linux kernel on macOS using Lima VM.