Add handling for cert validation errors