Use TLS 1.2 when available for https