fixing ssl cert validation