If port 443 refuses connections, check the listener first. An HTTP redirect sends the browser to another address. Enabling it too early can cut off your working management page.
Keep wired SSH open
Use this on OpenWrt or ImmortalWrt with uHTTPd. Back up the configuration and keep SSH connected. Replace main and 192.168.1.1 with your instance and management address throughout. Resolve any pending changes first.
uci changes uhttpd
uci show uhttpd.main
netstat -lntp

The isolated OpenWrt 25.12.6 VM shows only port 80. If another process owns 443, check the reverse proxy. If uHTTPd already listens on the right address, check the client path, management firewall zone, certificate name and dates. Keep WAN management closed.
Temporarily add the missing listener
Proceed only if 443 is free, the management address is stable and the entry is absent. Use your open SSH session. Leave the change uncommitted and redirection off.
uci add_list uhttpd.main.listen_https='192.168.1.1:443'
/etc/init.d/uhttpd restart
netstat -lntp | grep uhttpd
logread -e uhttpd | tail -n 20

Verify access before saving
The second screenshot shows 443 bound to the management address. If missing, inspect the log, TLS library and certificate and key paths. Keep the private key secret. Otherwise open the HTTPS address directly from the wired computer. Resolve identity, trust and hostname warnings through a trusted channel before entering credentials.
https://192.168.1.1/
Save after signing in and opening the status page. Run the second block below only for automatic redirection. Test both schemes in a fresh browser window. If HTTPS works but login loops, check sessions, site data and proxy settings.
uci commit uhttpd
HTTP → HTTPS
uci set uhttpd.main.redirect_https='1'
uci commit uhttpd
/etc/init.d/uhttpd restart
For uncommitted changes, undo the trial and restart the service. After committing, restore the saved uHTTPd configuration over SSH and restart. Keep certificate verification enabled.
uci revert uhttpd
/etc/init.d/uhttpd restart
Comments