openwrt snapshot on bananapi r2. In config I have stored config cert 'defaults' option days '730' option bits '2048' option country 'DE' option location 'Erfurt' option commonname 'bananapi' option state 'TH'
Now the generated certificate contains a random generated value for organization.
/etc/init.d/uhttpd contains this line -subj /C="${country:-ZZ}"/ST="${state:-Somewhere}"/L="${location:-Unknown}"/O="${organization:-OpenWrt$UNIQUEID}"/CN="${commonname:-OpenWrt}"
Seems there is an undocumented config variable named Organization, which does not show up in Luci
How can this solved?
Gotthard
I´m asking for cert generation including an organization variable from config file.
ATM the config file contains no variable for organization, even though the init script uses such a variable.
Thats a misunderstanding. I listed the values from the config file, I stored no certificate.
the support for that has apparently not been added to the LuCI GUI.
You can simply edit the config file /etc/config/uhttpd (with a text editor) and add that option line to correct section.
Note that the UCI option name is organization, not Organization.
Ps.
The default config files do not contain all possible options, so that is quite normal.
I can confirm, works in build 18673, generated certificate is correct now.
Bad news: uhttpd crashes if you click on "Remove old certificate and key" in Luci and needs restart from cli. System log shows any entries regarding this issue.