Initial TLS implementation.