[WO-746] Mark credentials dirty before storing updated certificate