RtcCertificatePem

Easily storable/serializable version of a native C++ RTCCertificatePEM.

Constructors

Link copied to clipboard
constructor(privateKey: String, certificate: String)
Instantiate an RtcCertificatePem object from stored strings.

Properties

Link copied to clipboard
PEM string representation of the certificate.
Link copied to clipboard
PEM string representation of the private key.

Functions

Link copied to clipboard
Generate a new RtcCertificatePem with the default settings of KeyType = ECDSA and expires = 30 days.
Generate a new RtcCertificatePem with a custom expires and the default setting of KeyType = ECDSA.
Generate a new RtcCertificatePem with a custom KeyType and the default setting of expires = 30 days.
Generate a new RtcCertificatePem with a custom KeyType and a custom expires.