Fix ssl errors