Wrote the TLS layer onto the server