setServerCertificateAsync

The setServerCertificate() method of the MediaKeys interface provides a server certificate to be used to encrypt messages to the license server.

MDN Reference