use ssl, log the error