W3C home > Mailing lists > Public > public-webrtc@w3.org > December 2015

setting generated key expire time.

From: Tim Panton <tim@phonefromhere.com>
Date: Wed, 9 Dec 2015 17:42:02 +0000
Message-Id: <559A877D-AD4F-42A1-8B21-EF543A480E87@phonefromhere.com>
To: "public-webrtc@w3.org" <public-webrtc@w3.org>
I see that in the Firefox implementation peerConnection.generateCertificate() takes an expires parameter:
Such that
 var creq = mozRTCPeerConnection.generateCertificate(
	{name: "ECDSA", namedCurve: "P-256", expires: 365*24*60*60*1000*1000 })
	.then(function (s){ console.log(new Date(s.expires)); });
creates a cert that is valid for a year.

However, this isn’t described in the the current editors draft (https://w3c.github.io/webrtc-pc/#widl-RTCPeerConnection-generateCertificate-Promise-RTCCertificate--AlgorithmIdentifier-keygenAlgorithm <https://w3c.github.io/webrtc-pc/#widl-RTCPeerConnection-generateCertificate-Promise-RTCCertificate--AlgorithmIdentifier-keygenAlgorithm>) Am I missing something ?

Received on Wednesday, 9 December 2015 17:42:33 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:47 UTC