Enable NLA and TLS negotiation with Gateway

Add a SSL BIO and enhance the transport layer to tunnel TLS over TLS, enabling both TLS and NLA security layers.