luci-app-uhttpd: certificate params hidden; allow user to define defaults from GUI
Issue template:
I installed this a while ago, and uhttpd config is old, but good. The new config defaults contain certificate generation defaults also. But for those who have older configs (which lack the config cert defaults section), the GUI shows nothing about certificates. Just uHTTPd Self-signed Certificate Parameters. This affects users and requires help interactions.
Steps to reproduce:
Remove the config cert defaults section from /etc/config/uhttpd. You're my prisoner now.
Expected behavior:
User should be able to define some defaults in the GUI if the defaults are absent from the config file.
Additional Information:
OpenWrt version information from system /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='23.05.2'
DISTRIB_REVISION='r23630-842932a63d'
DISTRIB_TARGET='ath79/generic'
DISTRIB_ARCH='mips_24kc'
DISTRIB_DESCRIPTION='OpenWrt 23.05.2 r23630-842932a63d'
DISTRIB_TAINTS=''
cert defaults are present since lede v17, year 2017. You can restore undamaged file from /room and then customize with uci to your liking.