There are a few different reasons that it isn't always done that way today, from concerns over devices having enough entropy to generate a random key to the amount of time it can take to generate a key on a slow CPU
I may be wrong here, but most of these devices don't have either a keyboard or a monitor attached to them. In order to configure them, they need to be connected to an other computer (with a keyboard and a monitor) - why not generate the keys there? I presume there's more than enough CPU power and entropy there. I've configured a new WiFi router just last week: I had to connect it with a UTP cable to the computer, put the attached CD into the computer, run the configuring program (of course, on Windows) and that program generated e.g. the WPA2 key. I didn't even need to access the web-based interface.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds