Back to Content

RTCCertificate

files/en-us/web/api/rtccertificate/index.md

latest1.1 KB
Original Source

{{APIRef("WebRTC")}}

The RTCCertificate interface of the WebRTC API provides an object representing a certificate that an {{domxref("RTCPeerConnection")}} uses to authenticate.

RTCCertificate is a {{Glossary("serializable object")}}, so it can be cloned with {{DOMxRef("Window.structuredClone", "structuredClone()")}} or copied between Workers using {{domxref("Worker/postMessage()", "postMessage()")}}.

Instance properties

  • {{domxref("RTCCertificate.expires")}} {{ReadOnlyInline}}
    • : Returns the expiration date of the certificate.

Instance methods

  • {{domxref("RTCCertificate.getFingerprints()")}}
    • : Returns an array of certificate fingerprints, calculated using the different algorithms supported by the browser.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also