store cert info in cookies