Table of Contents

Class RTCCertificate

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The RTCCertificate interface of the WebRTC API provides an object representing a certificate that an RTCPeerConnection uses to authenticate.

[Value("RTCCertificate")]
public class RTCCertificate
Inheritance
RTCCertificate
Inherited Members

Remarks

RTCCertificate is a {{Glossary("serializable object")}}, so it can be cloned with Window.StructuredClone or copied between Workers using WorkerpostMessage.

-RTCPeerConnection.RTCPeerConnection() argument configuration.certificates
-GenerateCertificate(Union187)

See also on MDN

Constructors

RTCCertificate()

public RTCCertificate()

Properties

Expires

The read-only expires property of the RTCCertificate interface returns the expiration date of the certificate.

[Value("expires")]
public ulong Expires { get; }

Property Value

ulong

A timestamp, given as Unix time in milliseconds, containing the expiration date of the certificate.

Remarks

By default a new certificate is configured with expires set to a value of 2592000000 milliseconds, or 30 days.
The expiration time cannot exceed 31536000000 milliseconds, or 365 days.
It's also useful to note that browsers may further restrict the expiration time of certificates if they choose.

-GenerateCertificate(Union187)

See also on MDN

Methods

GetFingerprints()

The getFingerprints() method of the RTCCertificate interface is used to get an array of certificate fingerprints.

[Value("getFingerprints")]
public List<RTCDtlsFingerprint> GetFingerprints()

Returns

List<RTCDtlsFingerprint>

An Array of fingerprint values.
Each fingerprint is represented by an object with the following properties:

Remarks

This can be used in application-level code to get certificate fingerprints, which are hash function of the certificate created using the various algorithms supported by the browser.

See also on MDN