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