I am trying to use the luci ttyd option under services/terminal in a snapshot build for a NanoPi R5S. When I try and access the terminal in a web browser at https://192.168.1.1/cgi-bin/luci/admin/services/ttyd I get an "Unable to connect" error in the terminal frame. I have the luci web interface configured to use ssl
# 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'
list ucode_prefix '/cgi-bin/luci=/usr/share/ucode/luci/uhttpd.uc'
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'
and ttyd to use the same certificates
# cat /etc/config/ttyd
config ttyd
option interface '@man'
option command '/bin/login'
option debug '7'
option ssl '1'
option ssl_cert '/etc/uhttpd.crt'
option ssl_key '/etc/uhttpd.key'