Skip to content

feat: generate certificates to keep a DTLS fingerprint - #607

Open
devopvoid wants to merge 1 commit into
mainfrom
feat/generate-certificate
Open

devopvoid wants to merge 1 commit into
mainfrom
feat/generate-certificate

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

Description

RTCCertificatePEM.generate(RTCCertificateKeyType) and generate(RTCCertificateKeyType, Duration) make a self-signed certificate with a new ECDSA (P-256) or RSA (2048 bit) key, as RTCPeerConnection.generateCertificate of the WebRTC specification does. Without a lifetime it is valid for 30 days, at most for a year.

Motivation and Context

A connection without a certificate makes its own, so its DTLS fingerprint changes every time. An application that keeps a generated certificate and passes it in RTCConfiguration.certificates keeps its fingerprint across connections. Until now it had to build the certificate itself.

Type of Change

  • New feature (feat)

Affected Modules

  • webrtc (Java API)
  • webrtc-jni (native code)
  • docs

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant