bluenviron / mediamtx

Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
MIT License
10.89k stars 1.41k forks source link

[WebRTC] WHEPS sourceFingerprint not working #2618

Closed tbnguyen1407 closed 8 months ago

tbnguyen1407 commented 8 months ago

Which version are you using?

v0.2.1

Which operating system are you using?

Describe the issue

sourceFingerprint is not used to validate the cert when ingesting with WHEPS, throwing error:

tls: failed to verify certificate: x509: certificate signed by unknown authority

Ingesting using other encrypted protocols, e.g RTSPS, is working as intended.

Describe how to replicate the issue

Replicate by ingesting WHEP output of mediamtx in another path.

~ mediamtx.yml ~
## rtsps
protocols: [tcp]
encryption: "optional"
serverKey: key.pem
serverCert: cert.pem

## webrtc
webrtcEncryption: yes
webrtcServerKey: key.pem
webrtcServerCert: cert.pem

paths:
  path1:
    source: "rtsp://x.x.x.x:554/"
  ## proxy path1 using rtsps - working
  path2:
    source: "rtsps://127.0.0.1:8322/path1"
    sourceFingerprint: "41A231120E5DFD75A333EED014B7A79F2E216BC53288FF102EB8FC5CD527E9E1"
  ## proxy path1 using webrtc - not working
  path3:
    source: "wheps://127.0.0.1:8889/path1/whep"
    sourceFingerprint: "41A231120E5DFD75A333EED014B7A79F2E216BC53288FF102EB8FC5CD527E9E1"
  1. start the server
  2. see logs for error

Did you attach the server logs?

no

Did you attach a network dump?

no

github-actions[bot] commented 8 months ago

This issue is mentioned in release v1.3.0 🚀 Check out the entire changelog by clicking here

github-actions[bot] commented 2 months ago

This issue is being locked automatically because it has been closed for more than 6 months. Please open a new issue in case you encounter a similar problem.