Updated certificate script