generateCertificate

Generate a new RtcCertificatePem with the default settings of KeyType = ECDSA and expires = 30 days.


Generate a new RtcCertificatePem with a custom KeyType and the default setting of 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 a custom expires.