Fixing some ssl errors