W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > April 2017

Re: [webrtc-pc] RTCCertificate.getAlgorithm for implicitly generated local certificates

From: Taylor Brandstetter via GitHub <sysbot+gh@w3.org>
Date: Wed, 12 Apr 2017 17:58:21 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-293658774-1492019900-sysbot+gh@w3.org>
If an application knows it only supports RSA certificates, it could just use `generateCertificate` 100% of the time.

My concern is that applications may be doing something like this:

```
config = { iceServers: [...], iceTransportPolicy: "relay", ... }
pc = new RTCPeerConnection(config);

// Later on...
config.iceTransportPolicy = "all";

// Throws exception, because |config| doesn't include auto-generated certificates?
pc.setConfiguration(config);
```

It's not exactly intuitive that you need to call `getConfiguration` in order to call `setConfiguration`. So I personally think things would be simpler if we kept the rule "`getConfiguration` just returns the last set or constructed-with configuration".

-- 
GitHub Notification of comment by taylor-b
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1120#issuecomment-293658774 using your GitHub account
Received on Wednesday, 12 April 2017 17:58:27 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:40 UTC