stop cert errors due to bad certificate