Fix certificate check pattern