Luci via https produces invalid cert warning in browser

I install luci-ssl etc. but the browser says, that https is invalid.

There's not nearly enough information here... please provide this as a starting point:

ubus call system board
cat /etc/config/uhttpd
3 Likes

I have paste your command in luci, system, startup, local startup, but it do not work. I type this following commands in ssh, from this url, (but the browser says, https invalid): https://openwrt.org/docs/guide-user/luci/luci.essentials?s[]=luci&s[]=https#tab__for_stable_releases_up_to_2410

opkg update
opkg install luci-ssl
/etc/init.d/uhttpd restart

uci set uhttpd.main.redirect_https=1
uci commit uhttpd
service uhttpd reload

Please try again with the following process:

Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button (red circle; this works best in the 'Markdown' composer view in the blue oval):

Screenshot 2025-10-20 at 8.14.14 PM

Remember to redact passwords, VPN keys, MAC addresses and any public IP addresses you may have:

ubus call system board
cat /etc/config/uhttpd
1 Like

if not obvious you hav€ to accept self-signed certificate from this command onwards.
And dont pate commands you dont understand again.

1 Like

read the browser's error message to understand why it says so, instead of posting ?

there's no error, everything works as intended.

1 Like

what should i do to solve the error?

It is not an error but a warning. One way to solve that warning is that you create your own CA and with that CA create a certificate for ssl server auth, import that cert in your openwrt router, config uhttp with it and finally and add the created CA to you browser.It is a long process just to avoid a warning though.

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.