Hello!,
So I'm reading this guide and would like to have https support for my netgear GS108Ev3 through Nginx via ip, it seems by the guide its possible by using the Subject Alternative Name
field.
however when I change the ssl certs path in /etc/config/nginx
for the ssl I'm only changing it for luci, but I also want it to support for the switch, would that be possible through this configuration?
or do I need to use /etc/nginx/conf.d
?
I would like to have both luci as the switch working on the same certificate via nginx.
my config:
config main global
option uci_enable 'true'
config server '_lan'
list listen '443 ssl default_server'
list listen '[::]:443 ssl default_server'
option server_name '_lan'
list include 'restrict_locally'
list include 'conf.d/*.locations'
option uci_manage_ssl 'self-signed'
#option ssl_certificate '/etc/nginx/conf.d/_lan.crt'
#option ssl_certificate_key '/etc/nginx/conf.d/_lan.key'
option ssl_certificate '/root/xdb/OpenWrt.crt'
option ssl_certificate_key '/root/xdb/OpenWrt.pem'
option ssl_session_cache 'shared:SSL:32k'
option ssl_session_timeout '64m'
option access_log 'off; # logd openwrt'
config server '_redirect2ssl'
list listen '80'
list listen '[::]:80'
option ssl_certificate '/root/xdb/OpenWrt.crt'
option ssl_certificate_key '/root/xdb/OpenWrt.pem'
option server_name '_redirect2ssl'
option return '302 https://$host$request_uri'