Additional fixes for new TLS.
Most TLS and HTTPS tests passing, plus some that failed before.
Need to work on Netty adapter.