Added cert and api