add TLS 1.2 support