Comments (3)
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.
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.
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)
- Example play-from-disk-h264
- Best practices for decoding Opus audio in real time HOT 1
- Udp connection not close (reopen #195) HOT 1
- [ICE] How to restart the ICE agent?
- Connection establishes with "ghost" media tracks that I've never added
- Is there a plan to create a connector to integrate webrt rs into ffmpeg HOT 2
- rtp crate has a wrong repo URL
- Sometimes negotiation fails
- Bug: Local track wont show up in the `answer`
- WebRTC 0.11 triggers a panic with "no process-level CryptoProvider available -- call CryptoProvider::install_default() before this point" HOT 1
- Error on multiple data channels.
- after call "create_answer", keep block. HOT 1
- Modify the webrtc RTCConfiguration and the get/setconfiguration for fixing "whipinto and whepfrom iceserver" in our project HOT 2
- First packet for simulcast RTP streams have wrong payload size
- Question: Why using Sample.duration to calculate rtp timestamp?
- Cancel safety/Idle tokio tasks after WebRTC session close
- Socket files for mDNS not closed after closing peer_connection? HOT 1
- How can I easily use this as a C library in place of libwebrtc? HOT 3
- `on_track` not called even after answer contains a video m line HOT 1
- Does WebRTC-RS not have a pacer?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webrtc.