Fix ssl_version: TLSv1 -> SSLv23
Add outputs for debugging
More debugging outputs.