Preheat oven to 375 degrees F. Spread the nuts on a baking sheet and toast in the oven till they are light golden brown and fragrant, about 10 minutes.
In a large saucepan, combine the rosemary, cayenne, brown sugar, sugar, salt, white pepper and melted butter; cook and stir over medium heat for 1 minute. Add the toasted nuts; cook and stir constantly over medium heat for another few minutes to coat and glaze the nuts.