add alert when trying to connect to server with self-signed certificate. disable output of stacktraces