refine ssl errors format