Uhttpd does not listen on port 443

Running openwrt on an Xiaomi AX3000t.
uhttp does not listen on port 443:
root@ax3000t:~# netstat -tulpen
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 19290/uhttpd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1762/dropbear
tcp 0 0 :::80 :::* LISTEN 19290/uhttpd
tcp 0 0 :::22 :::* LISTEN 1762/dropbear

This is my configuration:

root@ax3000t:~# cat /etc/config/uhttpd

config uhttpd 'main'
list listen_http '0.0.0.0:80'
list listen_http '[::]:80'
list listen_https '0.0.0.0:443'
list listen_https '[::]:443'
option redirect_https '1'
option home '/www'
option rfc1918_filter '1'
option max_requests '3'
option max_connections '100'
option cert '/etc/uhttpd.crt'
option key '/etc/uhttpd.key'
option cgi_prefix '/cgi-bin'
list lua_prefix '/cgi-bin/luci=/usr/lib/lua/luci/sgi/uhttpd.lua'
option script_timeout '60'
option network_timeout '30'
option http_keepalive '20'
option tcp_keepalive '1'
option ubus_prefix '/ubus'

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'

What am I missing?

Did you install the luci-ssl package ?

2 Likes

No, luci-ssl is not installed.
After installing https works.
Thanks for the fast help.

I’m also running an MT6000 with openwrt,
even no luci-ssl installed but http/443 works out of the box.
Weird :man_shrugging:

What version of OpenWrt?

OpenWrt 24.10.5, r29087-d9c5716d1d

And is that the same version as the Xiaomi?

(If you don't want to provide details, just disregard.)

It is not about exactly the luci-ssl itself, as that is just a meta package, selecting other packages. It installs one of the libustream variants, and that (and the corresponding SSL library) is needed for HTTPS with uhttpd.
However, libustream-mbedtls should be installed by default, unless you explicitly remove it (or replace it with libustream-openssl).

1 Like

Ok, blame on me :see_no_evil_monkey:
Xiaomi is running 25.12.0-rc3
After downgrading to 24.10.5, 443 works even without luci-ssl
Thanks for your help!

1 Like