blob: 9e52ba0c888a8d500072c1669599d88f64cb22c3 (
plain)
1
2
3
4
5
6
7
8
9
|
<!doctype html>
<script>
window.onmessage = async (event) => {
let certificate = event.data;
if (!certificate)
certificate = await RTCPeerConnection.generateCertificate({ name: 'ECDSA', namedCurve: 'P-256'});
event.source.postMessage(certificate, "*");
}
</script>
|