This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21879 - Unable to access certificate information in the API
Summary: Unable to access certificate information in the API
Status: RESOLVED LATER
Alias: None
Product: WebRTC Working Group
Classification: Unclassified
Component: WebRTC API (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Web RTC Working Group
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 27224
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-30 17:36 UTC by Martin Thomson
Modified: 2014-12-15 10:39 UTC (History)
3 users (show)

See Also:


Attachments

Description Martin Thomson 2013-04-30 17:36:50 UTC
The identity of the peer for an RTCPeerConnection is valuable information.  Current work concentrates on the mechanisms for authenticating this peer and presenting identification information on browser chrome.  No API surface is provided for inspecting the certificate presented by the peer.  No API surface is provided for inspecting the certificate that will be presented to the peer.

Providing access to certificates allows an application to make in-content assertions about the peer identity, as well as provide additional checks.  For instance, an application might be unable to use peer identity, but can provide their own assurances about peer identity.

In terms of what information is provided, this doesn't need to be robust.  I don't know what the WebCrypto group has done so far on this, but taking advantage of any API defined there is probably sensible.  At a minimum, this should provide access to the CN, DER-encoded certificate and a couple of certificate fingerprints (SHA-1 and SHA-256 probably).
Comment 1 Martin Thomson 2013-04-30 17:41:57 UTC
(I forgot to add this.)  Certificate information should be available even if the peer identity doesn't carry an identity assertion from an IDP.  That means that the RTCIdentityAssertion probably isn't the right place to add this information.
Comment 2 Harald Alvestrand 2014-10-28 19:01:37 UTC
Stats has defined stats items that allow access to certificates.
Would these satisfy the issue?
If so, we'll move this bug to be on stats.
Comment 3 Harald Alvestrand 2014-10-31 16:27:17 UTC
Included in RTPSender proposal.
Comment 4 Harald Alvestrand 2014-11-03 23:21:38 UTC
The API suggested is on the Transports proposal: Bug 27224.
Comment 5 Dominique Hazael-Massieux 2014-12-15 10:39:41 UTC
WebRTC API bugs have been moved to github issues: https://github.com/w3c/webrtc-pc/issues

Please subscribe to the issues you want to keep watching.