[webrtc-pc] RTCCertificate.getAlgorithm for remote certificates

henbos has just created a new issue for https://github.com/w3c/webrtc-pc:

== RTCCertificate.getAlgorithm for remote certificates ==
RTCCertificate.getAlgorithm() is described as follows:

> Returns the value of keygenAlgorithm passed in the call to generateCertificate().

It is clear what to do for RTCCertificates generated by RTCPeerConnection.generateCertificate, but for certificates generated by the RTCPeerConnection contructor when no certificate was provided, and retrieved by RTCPeerConnection.getConfiguration, it is not clear what getAlgorithm() should return.

> If no certificates value was specified, one or more new RTCCertificate instances are generated for use with this RTCPeerConnection instance.

This could mean the PC called generateCertificate and we have a known AlgorithmIdentifier, or the PC could do something implementation-specific to generate certificates. Must an AlgorithmIdentifier have been used? Do we deduce which AlgorithmIdentifier could have been used? Do we return null if certificates was generated without explicitly calling generateCertificate with an AlgorithmIdentifier?

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1120 using your GitHub account

Received on Tuesday, 11 April 2017 11:50:43 UTC