Companion

Functions

Link copied to clipboard

The generateCertificate() static function of the RTCPeerConnection interface creates an X.509 certificate and corresponding private key, returning a promise that resolves with the new RTCCertificate once it's generated.

Link copied to clipboard
external fun generateCertificateAsync(keygenAlgorithm: String): Promise<RTCCertificate>
external fun generateCertificateAsync(keygenAlgorithm: Algorithm): Promise<RTCCertificate>

The generateCertificate() static function of the RTCPeerConnection interface creates an X.509 certificate and corresponding private key, returning a promise that resolves with the new RTCCertificate once it's generated.