webrtc

cấu hình chứng chỉ tự ký ssl cho webrtc chạy trên Openwrt
opkg update
opkg install luci-ssl
opkg install acme
mkdir -p /etc/uhttpd/ssl
cd /etc/uhttpd/ssl
openssl req -x509 -newkey rsa:2048 -keyout router.key -out router.crt -days 365 -nodes
Cấu hình uHTTPd để dùng SSL Chỉnh file /etc/config/uhttpd
config uhttpd 'main'
...
option cert '/etc/uhttpd/ssl/router.crt'
option key '/etc/uhttpd/ssl/router.key'

Khởi động lại uHTTPd
/etc/init.d/uhttpd restart