Fixing open_tls_connection