Specifying TLSv1 to avoid connection reset by peer SSL errors