--- sidebar_label: SecurityDetails.validTo --- # SecurityDetails.validTo() method **Signature:** ```typescript class SecurityDetails {validTo(): number;} ``` **Returns:** number [Unix timestamp](https://en.wikipedia.org/wiki/Unix_time) marking the end of the certificate's validity.