Add ssl error reporting