implemented the logic for accept all certificates