Re: [webrtc-pc] Define a step-by-step generateCertificate algorithm (#2105)

Checking Chrome, Firefox and Safari, it seems the default expires value is the same, equal to roughly 30 days. We could then use it as a default.

As of avoiding 'any', I wonder whether any generateCertificate implementation allows passing a String. If that is not the case, maybe all we need to do is moving from 'any' to 'object' in generateCertificate WebIDL.

Alternatively, since passing a String is a shortcut, we could only grab 'expires' in case of AlgorithmIdentifier being an object. I'll update the PR in this way.

-- 
GitHub Notification of comment by youennf
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/pull/2105#issuecomment-468339653 using your GitHub account

Received on Thursday, 28 February 2019 16:29:27 UTC