Closed vegalou closed 2 years ago
Hi,
To listen on ssl endpoint, you should add something like -H8080r,8443s
, see https://github.com/civetweb/civetweb/blob/master/docs/UserManual.md#listening_ports-8080
Best Regards, Michel.
Dear Michel:
Thanks for your reply(AGAIN), it works!!
;-)
Here are steps to enable HTTPS for buddies.
Combine private.key
& fullchain.pem
files into one PEM file.
$ cat private.key fullchain.pem > all.pem
Or use text editor, append sections order like:
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
webrtc-streamer -C config.json -H 8000r,8443s -c /PATH/all.pem -w ./html -D YOUR.VALID.HOSTNAME
CivetWEB Listening at :8000 & :8443, Redirect http: :8000 to https: :8443 automatically. Use -D
option to specify domain name for auto redirect https correctly, prevent CivetWEB default domain name mydomain.com
error.
webrtc-streamer -C config.json -H 8443s -c /PATH/all.pem -w ./html -D YOUR.VALID.HOSTNAME
CivetWEB Listening at :8443 only.
https://YOUR.VALID.HOSTNAME:8443/webrtcstreamer.html?video=rtsp://admin:Pass1234@192.168.3.61:554/stream1
This way works webrtc-streamer streaming RTSP in WebRTC directly without R-Proxy of Web Server.
THANKS FOR YOUR SHARE.
@mpromonet
Try to run webrtc-streamer in HTTPS directly without R-Proxy of NGINx or Apache
Run in this way
Only HTTP startup, no HTTPS listening.
Or is it possible to specify SSL private key & cert configuration in config.json?
eg:
Thanks.