tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

RTCCertificate-postMessage-iframe.html (285B)


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