Git Product home page Git Product logo

Comments (3)

ris-work avatar ris-work commented on September 27, 2024

I am no expert in WebRTC or DTLS-SRTP but I think it is intended. It is intended because SRTP certificates are generated ad-hoc and are not signed by a certificate authority like Verisign or Comodo or ISRG. They are essentially temporary certificates, there is no reason to verify their chain. Their fingerprints should be verified manually, not their chain. They are essentially self-signed with a fingerprint which you can use to verify.
It is how it works because it does not make sense from a CA to issue SRTP certificates as they are P2P and not everyone essentially has an organization, domain name or an email address (which they will then have to reveal to the other peer, to add it to the injury...). SRTP essentially uses DTLS with a self-signed certificate which is verified through other means than a root of trust, more signatures and more signature chains, which are the typical setup in TLS (but not DTLS, in my opinion based on observations, DTLS-SRTP handshakes far outnumber the normal (non-SRTP) DTLS usage).

from webrtc.

casouri avatar casouri commented on September 27, 2024

Thank you, that makes perfect sense! I was confused since skip_verify sounds like it'll skip all verification, but I guess is obvious what it means for someone with domain knowledge ;-)

from webrtc.

casouri avatar casouri commented on September 27, 2024

Just to add a bit of information for anyone else confused as I was. Before establishing a connection, a webrtc endpoints generates a key and a self-signed certificate, hashes the certificate into a fingerprint, and puts the fingerprint in the SDP fingerprint attribute. SDP is then exchanged through the signaling server with other endpoints.

When the endpoint setup a DTLS connection, it accept any certificate (and doesn't verify the certificate chain, since everyone is using self-signed certificate). After the connection is established, the endpoint will verify the certificate sent by the other party against the fingerprint they received from SDP.

from webrtc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.