This just struck me as curious, but I was browsing through my config files and opened /etc/config/uhttpd and looked at the Cert defaults.
config cert 'defaults'
option days '397'
option key_type 'ec'
option bits '2048'
option ec_curve 'P-256'
option country 'ZZ'
option state 'Somewhere'
option location 'Unknown'
option commonname 'OpenWrt'
OpenWRT has removed any identifying information from the opening webpage. Doesn't that information present itself when its certificate is viewed from the browser and thereby revealing the device runs OpenWRT?
Yeah, that should be the one. (I can't verify it because I'm not on HTTPS.)
In FF you then go to Connection secure>More Information>Security>View Certificate
But can be added via UCI and is used when creating a new certificate.
uci set uhttpd.defaults.organization='Your text here'
or by editing the config file: /etc/config/uhttpd
config cert 'defaults'
option organization 'Your text here'
Deleting /etc/uhttpd.* will trigger the creation of a new self-signed certificate.
TLDR: Removing the "OpenWrt" name from the self-signed certificate:
uci set uhttpd.defaults.commonname='Your text here'
uci set uhttpd.defaults.organization='Your text here'
uci commit uhttpd
rm /etc/uhttpd.*
service uhttpd reload
service uhttpd restart
Assuming the reason behind removing the OpenWrt logo from the login page was to not identify itself. Placing the name in the self-signed certificate kind of negates that.
(I understand that the default hostname corresponds to the CN, and since the default hostname=OpenWrt so must the CN. But is the cert recreated when the hostname changes?)
The random-hex is fine, its the OpenWrt part that identifies it.
The end-user does not have the ability to change the organization name since the option is missing from the default uhttpd config.
That's a big assumption. The UI was altered a few versions back. I think that has to do with removing the old logo, nothing more.
You can always change the config by adding the option. This includes any UCI options not included in the file by default. So your statement isn't clear.
Additionally, you can add these configs to UCI Defaults and have a custom value by using the Firmware Selector (if that's your concern).
Interesting ideas, personally I'm not sure they apply well.
Feel free to make a request, of course.
Certs (including SSH) are created on first boot/install.
What's your concern about "identification".
That's untrue. The page title still appears. Its default is "OpenWrt" (i.e., it identifies the device).
I was only making note that the end user always had the ability to change it. The suggestion of adding a blank section (or anything else) merely adds bytes to the default file.