Fix SSLv3-only server error

When connecting via HTTPS, first attempt to connect with SSLv3, then
fall back to SSLv23.