【发布时间】:2020-06-22 17:16:08
【问题描述】:
这是代码(Ubuntu 上的浏览器 Chrome):
RTCPeerConnection.generateCertificate(
{ name: "RSASSA-PKCS1-v1_5",
modulusLength: 2048,
publicExponent: new Uint8Array([1, 0, 1]),
hash: "SHA-256" })
.then
( function(cert) {
console.log("typeof: " + typeof(cert));
console.log("S: " + JSON.stringify(cert));
},
function(err) {
console.log("E: " + err);
}
);
它显示:
typeof: object
S: {}
其实这和Mozilla site的代码差不多
同时,符合 WebRTC specs Section 4.9
【问题讨论】:
标签: webrtc mozilla client-certificates rtcpeerconnection