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

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