maintenance mode - generate key