Adding support for TLS versions 1.2,1.1