changed authentication from SSL3 to TLS